rockbox/utils/AMS/hacking/test.S
Dave Chapman 1aa6cde3ea Some tools for hacking Sansa V2 (AMS) firmware files and injecting our own code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17464 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 18:29:53 +00:00

11 lines
339 B
ArmAsm

/* This value is filled in by mkamsboot */
originalentry: .word 0
/* A delay loop - just to prove we're running */
mov r1, #0x500000 /* Approximately 5 seconds */
loop: subs r1, r1, #1
bne loop
/* Now branch back to the original firmware's entry point */
ldr pc, originalentry