translate: wip lpr/spr (noop still lol)

This commit is contained in:
fridtjof 2025-08-22 01:14:40 +02:00
parent bfb5c542f1
commit 2badeffc2e

View file

@ -1558,6 +1558,39 @@ static bool trans_STORM(DisasContext *ctx, arg_STORM *a) {
return true;
}
enum {
CR16C_PRD_DBS = 0,
CR16C_PRD_DSR = 1,
CR16C_PRD_DCR = 2,
CR16C_PRD_CAR0 = 4,
CR16C_PRD_CAR1 = 6,
CR16C_PRD_CFG = 8,
CR16C_PRD_PSR = 9,
CR16C_PRD_INTBASE = 10,
CR16C_PRD_ISP = 12,
CR16C_PRD_USP = 14,
};
enum {
CR16C_PR_DBS = 0,
CR16C_PR_DSR = 1,
CR16C_PR_DCRL = 2,
CR16C_PR_DCRH = 3,
CR16C_PR_CAR0L = 4,
CR16C_PR_CAR0H = 5,
CR16C_PR_CAR1L = 6,
CR16C_PR_CAR1H = 7,
CR16C_PR_CFG = 8,
CR16C_PR_PSR = 9,
CR16C_PR_INTBASEL = 10,
CR16C_PR_INTBASEH = 11,
CR16C_PR_ISPL = 12,
CR16C_PR_ISPH = 13,
CR16C_PR_USPL = 14,
CR16C_PR_USPH = 15,
};
// src -> proc register
static bool trans_LPR(DisasContext *ctx, arg_LPR* a) {
gen_helper_raise_unimplemented_instruction();
return true;
@ -1568,6 +1601,7 @@ static bool trans_LPRD(DisasContext *ctx, arg_LPRD* a) {
return true;
}
// proc register -> src
static bool trans_SPR(DisasContext *ctx, arg_SPR* a) {
gen_helper_raise_unimplemented_instruction();
return true;