diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-23 19:46:17 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-23 19:46:17 -0500 |
commit | 80d8f3ae48255f786bd4d52a1819ea0c339f6946 (patch) | |
tree | 70126a16181caf459cfcf79fce983655a7a704e5 /newasm/whitespace.s | |
parent | b08def431c09449b5ad2ff4379fb403b2e1bf67b (diff) |
Add register parser and binary search for opcodes
Diffstat (limited to 'newasm/whitespace.s')
-rw-r--r-- | newasm/whitespace.s | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/newasm/whitespace.s b/newasm/whitespace.s deleted file mode 100644 index f4d8d9f..0000000 --- a/newasm/whitespace.s +++ /dev/null @@ -1,21 +0,0 @@ -.syntax unified -.cpu cortex-m0plus -.thumb - -.type whitespace, %function -.global whitespace - -// 1 unexpected char - -whitespace: - LDRB R0, [R1] // get a char - CMP R0, ' // space - BEQ 1f - MOVS R0, #1 // return code 1 (unexpected char) - BX LR -1: ADDS R1, 1 // consume the character - LDRB R0, [R1] // get another character - CMP R0, ' // check if space - BEQ 1b // if so keep getting chars - MOVS R0, #0 // return code 0 (success) - BX LR |