diff options
| author | andromeda <andromeda@lenovo> | 2026-03-23 22:27:52 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-03-23 22:27:52 +0100 |
| commit | f4f0f50d80d07f19ba330653dba1d5180ea793b7 (patch) | |
| tree | 14a06cfc5d017631da31234832766e429576e3b1 /twasm/asm/main.asm | |
| parent | 9233ca421bc20af58b661c187bd4c6ab2d1066ca (diff) | |
test completeness, couple semantics
Diffstat (limited to 'twasm/asm/main.asm')
| -rw-r--r-- | twasm/asm/main.asm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/twasm/asm/main.asm b/twasm/asm/main.asm index c858a7a..55e28ae 100644 --- a/twasm/asm/main.asm +++ b/twasm/asm/main.asm @@ -817,7 +817,7 @@ tokenise: jmp .operand_break_continue ; cx = token ID - .operand_addr_register + .operand_addr_register: mov word [TOKEN_TABLE_ADDR + rax * TOKEN_TABLE_ENTRY_SIZE], 0x1000 inc rax ; 0x1000: addr reg token, next token is the register mov [TOKEN_TABLE_ADDR + rax * TOKEN_TABLE_ENTRY_SIZE], cx @@ -1417,12 +1417,12 @@ trim_trailing_whitespace: cmp al, 0 ; if last element whitespace je .done ; then break - .trim ; otherwise one shorter + .trim: ; otherwise one shorter dec rdi call trim_trailing_whitespace ret - .done + .done: mov rax, rdi ret @@ -1738,4 +1738,6 @@ program: db "hlt", 0x0A ; TODO make it so it doesn't need to end with a newline; this ; would mean range checking members in operator/operand/com- ; ment loops at the end of the program - .size db $ - program + .size dq $ - program + +msg_end db "end of the binary ->|", 0x0A, 0x00 |
