aboutsummaryrefslogtreecommitdiff
path: root/hexedit/hexedit.s
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-06-04 19:28:25 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-06-04 19:28:25 -0500
commitf2f186c3594a922e51abf25b24052c61f833a2bf (patch)
treea4cd5bb88adc8b94582ed40a8a7ad04235a9db69 /hexedit/hexedit.s
parentb38a844ed9f6ad17d58db3e143ebc0c858762ec6 (diff)
Rename stage 0 editor
Diffstat (limited to 'hexedit/hexedit.s')
-rw-r--r--hexedit/hexedit.s34
1 files changed, 0 insertions, 34 deletions
diff --git a/hexedit/hexedit.s b/hexedit/hexedit.s
deleted file mode 100644
index 0800a3a..0000000
--- a/hexedit/hexedit.s
+++ /dev/null
@@ -1,34 +0,0 @@
-.syntax unified
-.cpu cortex-m0plus
-.thumb
-
-.equ SRAM_BASE, 0x20000000
-
-.type hexedit, %function
-.global hexedit
-
-hexedit:
- ldr r6, =SRAM_BASE
- adds r5, r6, 1
-10:
- movs r4, 0
-20:
- bl uart_recv
- cmp r0, '\r
- beq 30f
- cmp r0, 'G
- beq 40f
- bl uart_send
- subs r0, '0
- lsls r4, 3
- adds r4, r0
- b 20b
-30:
- bl uart_send
- movs r0, '\n
- bl uart_send
- strh r4, [r6]
- adds r6, 2
- b 10b
-40:
- bx r5