21 lines
202 B
NASM
21 lines
202 B
NASM
bits 16
|
|
org 0x7c00
|
|
|
|
mov si, 0
|
|
|
|
print:
|
|
mov ah, 0x0E
|
|
mov al, [hello+si]
|
|
int 0x10
|
|
add si, 1
|
|
cmp byte [hello+si] ,0
|
|
jne print
|
|
|
|
jmp $
|
|
|
|
hello:
|
|
db "Hello World!", 0
|
|
|
|
times 510 - ($ - $$) db 0
|
|
dw 0xAA55
|