summaryrefslogtreecommitdiff
path: root/src/start.s
diff options
context:
space:
mode:
authorDario Bartussek <[email protected]>2021-03-28 17:55:19 +0200
committerDario Bartussek <[email protected]>2021-03-28 17:55:19 +0200
commit285074235fe0d34660cbbf61acfe7af4b2bed79b (patch)
tree7a56d65d0c6f61534d7d79c7d1cb4f0796a43b9b /src/start.s
parentUpdated main to actually produce a start function (diff)
downloadrust_3ds-285074235fe0d34660cbbf61acfe7af4b2bed79b.tar.xz
rust_3ds-285074235fe0d34660cbbf61acfe7af4b2bed79b.zip
Added ROM header generation assembly
Diffstat (limited to 'src/start.s')
-rw-r--r--src/start.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/start.s b/src/start.s
new file mode 100644
index 0000000..158feef
--- /dev/null
+++ b/src/start.s
@@ -0,0 +1,22 @@
+.cpu mpcore
+.section ".crt0","ax"
+
+.align 2
+.arm
+
+_start:
+ b pre_main
+
+.ascii "_prm"
+__service_ptr:
+ .word 0
+__apt_appid:
+ .word 0x300
+__heap_size:
+ .word 24*1024*1024
+__linear_heap_size:
+ .word 32*1024*1024
+__system_arglist:
+ .word 0
+__system_runflags:
+ .word 0