From ec191db8498e90ba2f882abab9634ad304206977 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 18 Sep 2020 00:09:55 +0200 Subject: [PATCH] arm asm, tiny optimisation for 68k mem access --- pico/m68kif_cyclone.s | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pico/m68kif_cyclone.s b/pico/m68kif_cyclone.s index 3a9621dc..ec3087e5 100644 --- a/pico/m68kif_cyclone.s +++ b/pico/m68kif_cyclone.s @@ -32,13 +32,12 @@ cyclone_checkpc: ldr r1, [r7, #0x6c] @ read16 map mov r2, r2, lsr #M68K_MEM_SHIFT ldr r1, [r1, r2, lsl #2] - movs r1, r1, lsl #1 - bcs crashed - sub r1, r1, r3 - str r1, [r7, #0x60] @ membase - add r0, r0, r1 - bx lr + movs r1, r1, lsl #1 + subcc r1, r1, r3 + strcc r1, [r7, #0x60] @ membase + addcc r0, r0, r1 + bxcc lr crashed: stmfd sp!,{lr} -- 2.39.5