FreeCalypso > hg > fc-magnetite
diff romvecs-patch/romvecs-insert.S @ 467:3285960cc1b9
romvecs-patch: experimental insert code written
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Mar 2018 01:18:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/romvecs-patch/romvecs-insert.S Sun Mar 25 01:18:50 2018 +0000 @@ -0,0 +1,20 @@ + .text + .code 32 + .globl _entry + +_entry: adr r0, vectors + ldmia r0, {r1-r7} + mov r0, #0x800000 + stmia r0, {r1-r7} + ldr pc, jumpaddr + +vectors: + .word 0x4000 + .word 0x4004 + .word 0x4008 + .word 0x400C + .word 0x4010 + .word 0x4014 + .word 0x4018 +jumpaddr: + .word 0x4058