forked from len0rd/rockbox
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
This commit is contained in:
parent
d24eb9e461
commit
1aa6cde3ea
5 changed files with 525 additions and 0 deletions
11
utils/AMS/hacking/test.S
Normal file
11
utils/AMS/hacking/test.S
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
/* 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue