HariboteOS/day24/app/hello.asm
2021-05-25 21:42:25 +08:00

20 lines
207 B
NASM

[BITS 32]
MOV ECX, msg
MOV EDX, 1
put_loop:
MOV AL, [CS:ECX]
CMP AL, 0
JE fin
INT 0x40
ADD ECX, 1
JMP put_loop
fin:
MOV EDX, 4
INT 0x40
msg:
DB "hello", 0