jump_to: reset registers to zero (#33)

This commit is contained in:
mcudev 2017-10-10 08:40:57 -04:00 committed by Pavol Rusnak
parent 55b7f5058b
commit 9ea975d37d
1 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,18 @@ jump_to:
// go on to the next stage // go on to the next stage
ldr lr, =0xffffffff // set the link register to reset value. there is no reason to return here. ldr lr, =0xffffffff // set the link register to reset value. there is no reason to return here.
ldr r0, [r4, 4] ldr r0, [r4, 4]
ldr r1, =0
ldr r2, =0
ldr r3, =0
ldr r4, =0
ldr r5, =0
ldr r6, =0
ldr r7, =0
ldr r8, =0
ldr r9, =0
ldr r10, =0
ldr r11, =0
ldr r12, =0
bx r0 bx r0
.end .end