From: kub Date: Thu, 17 Sep 2020 22:09:55 +0000 (+0200) Subject: arm asm, tiny optimisation for 68k mem access X-Git-Tag: v2.00~691 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec191db8498e90ba2f882abab9634ad304206977;p=picodrive.git arm asm, tiny optimisation for 68k mem access --- 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}