HariboteOS/day28/app/hello.asm
2021-06-01 21:15:52 +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