summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--twasm/asm/main.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/twasm/asm/main.asm b/twasm/asm/main.asm
index aec5199..2a0cf2a 100644
--- a/twasm/asm/main.asm
+++ b/twasm/asm/main.asm
@@ -1987,7 +1987,7 @@ print:
mov al, [rsi]
cmp al, 0x00
je .done
- out dx, al
+ out dx, ax
inc rsi
jmp .loop
.done:
@@ -3050,7 +3050,7 @@ program:
db " mov al, [rsi]", 0x0A
db " cmp al, 0x00", 0x0A
db " je .done", 0x0A
- db " out dx, al", 0x0A
+ db " out dx, ax", 0x0A
db " inc rsi", 0x0A
db " jmp .loop", 0x0A
db " .done:", 0x0A