cmp r5,#5 @its 5 if the parameter was actually a pointer to ewram
bne SkipThis @if its not we probably can't put something there
str r5,[r4] @but if it is, we can put something there
SkipThis:
mov r6, #0 @ counter
sub r6, #1 @ Start at 0xFFFFFFFF so that we can immediately add 1 and start with index 0
LoopStart: @ label to jump back to as part of a loop
@ screw it, arm time it is
.align @ we need to be 4-aligned in exactly two instructions so let's be proactive about it
bx pc @ goto pc + 4 and switch to ARM
nop @ paddy pad
.arm @ good luck