diff romvecs-patch/src/romvecs-insert.S @ 470:fb5c5859ad22

romvecs-patch: insert code moved into src subdir
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Mar 2018 05:46:28 +0000
parents romvecs-patch/romvecs-insert.S@3285960cc1b9
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/romvecs-patch/src/romvecs-insert.S	Sun Mar 25 05:46:28 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