aboutsummaryrefslogtreecommitdiff
path: root/newasm/string.s
diff options
context:
space:
mode:
Diffstat (limited to 'newasm/string.s')
-rw-r--r--newasm/string.s10
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]