all repos — mgba @ 288eba1f80cd8e61d7f3ed80fb610a455f21b5d2

mGBA Game Boy Advance Emulator

Fix POP {pc}
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 03:28:58 -0700
commit

288eba1f80cd8e61d7f3ed80fb610a455f21b5d2

parent

3b3b6e0546d4263408887aec5c62601d1b850070

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

jump to
M src/isa-thumb.csrc/isa-thumb.c

@@ -353,7 +353,8 @@ +=, \

, \ cpu->gprs[ARM_PC] = cpu->memory->load32(cpu->memory, address) & 0xFFFFFFFE; \ address += 4;, \ - cpu->gprs[ARM_SP] = address) + cpu->gprs[ARM_SP] = address; \ + THUMB_WRITE_PC;) DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(PUSH, \ opcode & 0x00FF, \