diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-21 03:18:35 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-21 03:18:35 -0500 |
commit | ccc04526f14764d856ad37b1f517308fccf886a6 (patch) | |
tree | 7c25442967b071a485a44c1da73b16ba84adc9af /newasm/string.s | |
parent | ed6f1106322f8ca4a6e26d08365bb9558ffa9d09 (diff) |
Add label and opcode parsers
Diffstat (limited to 'newasm/string.s')
-rw-r--r-- | newasm/string.s | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/newasm/string.s b/newasm/string.s index c1dad1c..c77958b 100644 --- a/newasm/string.s +++ b/newasm/string.s @@ -3,9 +3,10 @@ .thumb .type putstr, %function +.type putstrln, %function .type cmpstr, %function -.global putstr, cmpstr +.global putstr, putstrln, cmpstr putstr: LDR R3, =0x40034000 MOVS R2, 0x20 @@ -20,6 +21,13 @@ putstr: LDR R3, =0x40034000 B 1b 2: BX LR +putstrln: + PUSH {LR} + BL putstr + LDR R0, =crlf + BL putstr + POP {PC} + cmpstr: MOVS R4, 0 1: LDRB R2, [R0, R4] LDRB R3, [R1, R4] |