all repos — mgba @ 2ed7d513762b380fb00abdff521f579ce71b68c8

mGBA Game Boy Advance Emulator

ARM7: Fix decoding of Thumb ADD (variants 5 and 6)
Jeffrey Pfau jeffrey@endrift.com
Sun, 31 Jul 2016 00:27:16 -0700
commit

2ed7d513762b380fb00abdff521f579ce71b68c8

parent

a299a4e5eacaaa8e8c7cd6977b9f64f79c90254b

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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 | \