diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-05-19 13:52:10 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-05-19 13:52:10 -0500 |
commit | c96ba2b2678e4b92e7969c683d4cb3f1648af813 (patch) | |
tree | 38d8eef4cdc62a3ab508b4884a44657b22b9fbf7 /assembler/get_char.s | |
parent | a63eba62ae9faffea51ba618b0d20f132c23c452 (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/get_char.s')
-rw-r--r-- | assembler/get_char.s | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/assembler/get_char.s b/assembler/get_char.s deleted file mode 100644 index f1f43e7..0000000 --- a/assembler/get_char.s +++ /dev/null @@ -1,21 +0,0 @@ -// R9: end_char -get_char: - PUSH {LR} - BL uart_recv - MOVS R1, 025 // ^U (NAK) - CMP R0, R1 - BEQ redo_line - MOVS R1, 004 // ^D (EOT) - CMP R0, R1 - BEQ done_for_real - CMP R0, R9 - POP {PC} - -get_line: - BL get_char - ... - B get_line - -redo_line: - ... - B get_line |