From 560726728f85b46eaa95e1bddbf13a1d72091669 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Tue, 24 Feb 2015 12:11:16 -0800 Subject: [PATCH] bugfix CPU reinitialization --- src/arm/cpu.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arm/cpu.S b/src/arm/cpu.S index 39645f4b..82c6b3a0 100644 --- a/src/arm/cpu.S +++ b/src/arm/cpu.S @@ -2456,7 +2456,7 @@ exception: tst r0, #ResetSig tst r0, #0xFF bne exit_reinit -ex_reset: mov r0, #0 +ex_reset: eor r0, r0, r0 ldr r1, SYM(cpu65__signal) strb r0, [r1] ldr EffectiveAddr, SYM(reset_vector) @@ -2509,8 +2509,8 @@ ENTRY(cpu65_run) ldrb SP_Reg, [r1] ldr r1, SYM(emul_reinitialize) ldrb r0, [r1] - tst r0, #0 - movne r0, #0 + teq r0, #0 + eorne r0, r0, r0 strneb r0, [r1] bne ex_reset b continue1