View Single Post
Old February 9th, 2013 (7:28 AM).
knizz's Avatar
knizz knizz is offline
Join Date: Aug 2007
Posts: 192
Firered's "wait-for-interrupt"-loop is quite inefficient. Here is my suggested patch. (Experimental, may or may not freeze the game.)
080008aa  8b91 ldrh r1, [r2, #0x1c]
080008ac  1c18 add r0, r3, #0x0
080008ae  4008 and r0, r1
080008b0  2800 cmp r0, #0x0
080008b2  d0fa beq $080008aa
080008b4  bc01 pop {r0}
080008b6  4700 bx r0

080008aa  df02 swi $02
080008ac  8b91 ldrh r1, [r2, #0x1c]
080008ae  1c18 add r0, r3, #0x0
080008b0  4008 and r0, r1
080008b2  2800 cmp r0, #0x0
080008b4  d0f9 beq $080008aa
080008b6  bd00 pop {pc}
This should be useful if emulation is slow on your machine. Or if you want to be even faster when holding the space key.
Firered IDA 6.6 DB:
VBA-M with lua scripting support
Reply With Quote