Originally Posted by
siestacat
K so you can put that into one routine?
Code:
@Convert to thumb
add r2,pc,#1
bx r2
.thumb
ldr r3,TimeAddress
ldr r4,[r3]
ldr r0,IOKeys
ldrh r0,[r0]
mov r1,#0x11
lsl r1,#4
CheckForward:
tst r0,r1
beq Forward
add r1,r1
tst r0,r1
bne Exit
sub r4,#4
Forward:
add r4,#2
str r4,[r3]
Exit:bx lr
.arm
IOKeys:
.long 0x4000130
TimeAddress:
.long 0x21ECD84
Code:
023FF090 012FFF11
E0000000 00000030
E28F2001 E12FFF12
681C4B08 88004806
01092111 D0034208
42081849 3C04D102
601C3402 00004770
04000130 021ECD84
023FF090 E3520003
same exact thing as you put, except in one routine. Try it (no need to add activator lines or anything)
sorry if there are errors, I'm half asleep