From 53f4805ebb0b1df126cdfc52e8ba5be7a994afbb Mon Sep 17 00:00:00 2001 From: jeffman Date: Fri, 10 Mar 2017 18:43:59 -0500 Subject: [PATCH] Small optimization (8 cycles) --- m2-vwf.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/m2-vwf.asm b/m2-vwf.asm index 8ced535..e934c7a 100644 --- a/m2-vwf.asm +++ b/m2-vwf.asm @@ -624,7 +624,11 @@ mov r0,#6 lsl r0,r0,#24 add r1,r0,r1 // VRAM dest address add r0,r3,#4 // source address -ldr r2,=#0x1000008 // set the fixed source address flag + copy 8 words +mov r2,#1 +lsl r2,r2,#21 +add r2,r2,#1 +lsl r2,r2,#3 // r2 = 0x1000008 + // set the fixed source address flag + copy 8 words swi #0xC // CpuFastSet pop {r0-r3,pc}