summaryrefslogtreecommitdiffstats
path: root/scripts/quartus/firmware.S
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-11-24 22:27:15 +0000
committerYann Herklotz <git@yannherklotz.com>2022-11-24 22:27:15 +0000
commit59c9a162631b78eff84e2002478413b98c2cffbb (patch)
tree7d604206a2deb29c9f097ff1f3b7de78f44b34a3 /scripts/quartus/firmware.S
downloadbutterstick-59c9a162631b78eff84e2002478413b98c2cffbb.tar.gz
butterstick-59c9a162631b78eff84e2002478413b98c2cffbb.zip
Move all files
Diffstat (limited to 'scripts/quartus/firmware.S')
-rw-r--r--scripts/quartus/firmware.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/quartus/firmware.S b/scripts/quartus/firmware.S
new file mode 100644
index 0000000..c55a3ba
--- /dev/null
+++ b/scripts/quartus/firmware.S
@@ -0,0 +1,12 @@
+.section .init
+.global main
+
+/* set stack pointer */
+lui sp, %hi(16*1024)
+addi sp, sp, %lo(16*1024)
+
+/* call main */
+jal ra, main
+
+/* break */
+ebreak