summaryrefslogtreecommitdiff
path: root/src/crt0.s
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-11-06 12:29:40 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2020-11-06 12:29:40 -0500
commitc70c44fa48282632ec7457d4f2bbb5a19a4d70c9 (patch)
tree4dd75265e32c12146b81c97bb441227135ec99fb /src/crt0.s
parent99dd461befcfe3bef3ce188fea2fb372c2f21b98 (diff)
Simplify RAM reset adaptation for modern
Diffstat (limited to 'src/crt0.s')
-rw-r--r--src/crt0.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crt0.s b/src/crt0.s
index cb7c93a6b..ba068f8d9 100644
--- a/src/crt0.s
+++ b/src/crt0.s
@@ -91,6 +91,10 @@ Init: @ 8000204
ldr r1, =INTR_VECTOR
adr r0, IntrMain
str r0, [r1]
+ .if MODERN
+ mov r0, #255 @ RESET_ALL
+ swi #1 << 16
+ .endif @ MODERN
ldr r1, =AgbMain + 1
mov lr, pc
bx r1