aboutsummaryrefslogtreecommitdiff
path: root/assembler/string.s
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-05-19 13:52:10 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-05-19 13:52:10 -0500
commitc96ba2b2678e4b92e7969c683d4cb3f1648af813 (patch)
tree38d8eef4cdc62a3ab508b4884a44657b22b9fbf7 /assembler/string.s
parenta63eba62ae9faffea51ba618b0d20f132c23c452 (diff)
Rework assembler for simplified instruction set
- Remove commas and brackets from syntax - Rename opcodes for unambiguous instruction encodings - Redesign parse instruction encoding - Implement opcode parser - Add bit-width restriction to octal parser
Diffstat (limited to 'assembler/string.s')
-rw-r--r--assembler/string.s16
1 files changed, 0 insertions, 16 deletions
diff --git a/assembler/string.s b/assembler/string.s
deleted file mode 100644
index 0ed7ca3..0000000
--- a/assembler/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