20 lines
207 B
NASM
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
|