mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-24 04:10:05 +00:00
arm_dyncom_thumb: Implement SXTH, SXTB, UXTH, and UXTB.
This commit is contained in:
parent
b64dea80ce
commit
7caef19c89
@ -276,6 +276,17 @@ tdstate thumb_translate(u32 addr, u32 instr, u32* ainstr, u32* inst_size) {
|
|||||||
|(tinstr & 0x007F); // off7
|
|(tinstr & 0x007F); // off7
|
||||||
} else if ((tinstr & 0x0F00) == 0x0e00) {
|
} else if ((tinstr & 0x0F00) == 0x0e00) {
|
||||||
*ainstr = 0xEF000000 | 0x180000; // base | BKPT mask
|
*ainstr = 0xEF000000 | 0x180000; // base | BKPT mask
|
||||||
|
} else if ((tinstr & 0x0F00) == 0x0200) {
|
||||||
|
static const ARMword subset[4] = {
|
||||||
|
0xE6BF0070, // SXTH
|
||||||
|
0xE6AF0070, // SXTB
|
||||||
|
0xE6FF0070, // UXTH
|
||||||
|
0xE6EF0070, // UXTB
|
||||||
|
};
|
||||||
|
|
||||||
|
*ainstr = subset[BITS(tinstr, 6, 7)] // base
|
||||||
|
| (BITS(tinstr, 0, 2) << 12) // Rd
|
||||||
|
| BITS(tinstr, 3, 5); // Rm
|
||||||
} else if ((tinstr & 0x0F00) == 0x0a00) {
|
} else if ((tinstr & 0x0F00) == 0x0a00) {
|
||||||
static const ARMword subset[3] = {
|
static const ARMword subset[3] = {
|
||||||
0xE6BF0F30, // REV
|
0xE6BF0F30, // REV
|
||||||
|
Loading…
Reference in New Issue
Block a user