From ccc04526f14764d856ad37b1f517308fccf886a6 Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Wed, 21 Aug 2024 03:18:35 -0500 Subject: Add label and opcode parsers --- newasm/string.s | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'newasm/string.s') 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] -- cgit v1.2.3