2025-12-29 16:35:06 -05:00

25 lines
414 B
NASM

section .text:
main:
mov ax, world
push ax
mov dx, problem
push dx
pop cx
mov ax, hello
push ax
mov ax, trash
push ax
pop bx
mov ax, format
push ax
call 0x0ff0 ; printf
pop bx
pop bx
pop bx
ret
section .data:
world: db "world", 0
hello: db "hello", 0
trash: db "garbage", 0
problem: db "problem", 0
format: db "%s, %s!", 10, 0