aboutsummaryrefslogtreecommitdiff
path: root/string.s
diff options
context:
space:
mode:
Diffstat (limited to 'string.s')
-rw-r--r--string.s16
1 files changed, 0 insertions, 16 deletions
diff --git a/string.s b/string.s
deleted file mode 100644
index 0ed7ca3..0000000
--- a/string.s
+++ /dev/null
@@ -1,16 +0,0 @@
-// R0 : string1 address
-// R1 : string2 address
-// Result in R0
-string_compare:
- MOVS R4, 0
-loop:
- LDRB R2, [R0, R4]
- LDRB R3, [R1, R4]
- CMP R2, R3
- BNE done
- CMP R2, 0
- BEQ done
- ADDS R4, 1
- B loop
-done:
- BX LR