summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-04-02 23:44:17 +0200
committerandromeda <andromeda@lenovo>2026-04-02 23:44:17 +0200
commite8c1313eceba2d36a8b5d153a6ce2c82fcf99cc3 (patch)
treeca844a609720a2c89e484b3633a710b343eab708
parentc1463e1fef3377be2a135945da864b24b997512a (diff)
:p
-rw-r--r--twasm/asm/main.asm5
1 files changed, 3 insertions, 2 deletions
diff --git a/twasm/asm/main.asm b/twasm/asm/main.asm
index b958731..239e0d5 100644
--- a/twasm/asm/main.asm
+++ b/twasm/asm/main.asm
@@ -90,7 +90,7 @@ start:
; ------------------------------------------------------------------------------
assemble:
- ; TODO deal with src=imm and src=imm8
+ mov rbp, rsp
xor eax, eax
mov [.tokens_processed], eax ; eax = number of tokens processed
mov [.tokens_total], edi ; edi = total number of tokens in table
@@ -940,7 +940,8 @@ assemble:
mov rsi, .msg_break
call print.debug
pop rsi
- jmp halt
+ mov rsp, rbp
+ ret
.unexpected_token:
call .flush_write_buffer