From e4dde67e52351b0c14690b09ff0608d6787a8a0b Mon Sep 17 00:00:00 2001 From: normmatt234 Date: Sun, 7 Apr 2013 05:47:26 +0000 Subject: [PATCH] Fixed register used in asm. --- src/gba/GBA-arm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/GBA-arm.cpp b/src/gba/GBA-arm.cpp index 27983682..732f4474 100644 --- a/src/gba/GBA-arm.cpp +++ b/src/gba/GBA-arm.cpp @@ -359,7 +359,7 @@ static void count(u32 opcode, int cond_res) EMIT2(cmp, KONST(0x0F), eax) \ EMIT2(mov, REGREF2(eax,4), eax) \ EMIT1(jne, LABELREF(3,f)) \ - EMIT2(add, KONST(4), ax) \ + EMIT2(add, KONST(4), eax) \ LABEL(3) \ EMIT2(movzx, ch, ecx) \ EMIT2(and, KONST(0x0F), ecx) \