mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-09 00:12:45 +01:00
commit
0fd731ee63
1 changed files with 12 additions and 12 deletions
|
@ -6103,12 +6103,12 @@ L_stm_s_takeabort:
|
||||||
}
|
}
|
||||||
case 0x6c:
|
case 0x6c:
|
||||||
if ((instr & 0xf03f0) == 0xf0070) { //uxtb16
|
if ((instr & 0xf03f0) == 0xf0070) { //uxtb16
|
||||||
u8 src1 = BITS(0, 3);
|
u8 rm_idx = BITS(0, 3);
|
||||||
u8 tar = BITS(12, 15);
|
u8 rd_idx = BITS(12, 15);
|
||||||
u32 base = state->Reg[src1];
|
u32 rm_val = state->Reg[rm_idx];
|
||||||
u32 shamt = BITS(9,10)* 8;
|
u32 rotation = BITS(10, 11) * 8;
|
||||||
u32 in = ((base << (32 - shamt)) | (base >> shamt));
|
u32 in = ((rm_val << (32 - rotation)) | (rm_val >> rotation));
|
||||||
state->Reg[tar] = in & 0x00FF00FF;
|
state->Reg[rd_idx] = in & 0x00FF00FF;
|
||||||
return 1;
|
return 1;
|
||||||
} else
|
} else
|
||||||
printf ("Unhandled v6 insn: uxtab16\n");
|
printf ("Unhandled v6 insn: uxtab16\n");
|
||||||
|
|
Loading…
Reference in a new issue