ARM7: Fix decoding of Thumb ADD (variants 5 and 6)
Jeffrey Pfau jeffrey@endrift.com
Sun, 31 Jul 2016 00:27:16 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -10,6 +10,7 @@ - GBA Memory: Fix mirror on non-overdumped Classic NES games
- Util: Fix realloc semantics in utf16to8 - PSP2: Fix GPU crash while exiting - PSP2: Fix VSync + - ARM7: Fix decoding of Thumb ADD (variants 5 and 6) Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure
M
src/arm/decoder-thumb.c
→
src/arm/decoder-thumb.c
@@ -143,7 +143,7 @@ DEFINE_DECODER_WITH_HIGH_THUMB(MOV3, MOV, ARM_OPERAND_AFFECTED_1, 0)
#define DEFINE_IMMEDIATE_WITH_REGISTER_DATA_THUMB(NAME, MNEMONIC, REG) \ DEFINE_THUMB_DECODER(NAME, MNEMONIC, \ - info->op1.reg = (opcode >> 6) & 0x0007; \ + info->op1.reg = (opcode >> 8) & 0x0007; \ info->op2.reg = REG; \ info->op3.immediate = (opcode & 0x00FF) << 2; \ info->operandFormat = ARM_OPERAND_REGISTER_1 | \