26 lines
266 B
NASM
26 lines
266 B
NASM
[BITS 16]
|
|
[ORG 0x7C00]
|
|
|
|
start:
|
|
xor ax, ax
|
|
mov ds, ax
|
|
mov es, ax
|
|
mov si, msg
|
|
|
|
loop:
|
|
lodsb
|
|
cmp al, 0
|
|
je hlt
|
|
mov ah, 0x0E
|
|
int 0x10
|
|
jmp loop
|
|
|
|
hlt:
|
|
hlt
|
|
jmp hlt
|
|
|
|
msg: db 'Hello M4 Bochs!', 0
|
|
|
|
times 510-($-$$) db 0
|
|
dw 0xAA55
|