undar-lang/test/hello.asm

12 lines
202 B
NASM

.text
hello:
load $1 &hello_str
load $2, &terminal_str
slen $4, $3
sysc DEVICE_WRITE, 3, $2 ; print(sum.toS())
halt
.data
terminal_str: "/dev/term/0"
hello_str: "nuqneH 'u'?"