diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-07-20 01:38:55 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-07-20 01:38:55 -0500 |
commit | 513531360fe050bcd3598a34dac25afa496fd4b2 (patch) | |
tree | 5dfa3d99fe0d9a8f17445595d02eb01b6d718c43 /misc/string.s | |
parent | f0eb0cdec747d5e1c7165b8b1ad44a888ec9826e (diff) |
Move string comparison
Diffstat (limited to 'misc/string.s')
-rw-r--r-- | misc/string.s | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/misc/string.s b/misc/string.s deleted file mode 100644 index 0ed7ca3..0000000 --- a/misc/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 |