comment *
MASM32 SDK
ml /c /AT /Fl helloipl.asm
link16 /t helloipl;
*
.model tiny
.code
org 0h ; IPL
TVRAM equ 0a000h ; TEXT VRAM
main proc
push cs
pop ds
mov ax, TVRAM
mov es, ax
mov si, offset msg
call puts
mov si, offset msg
call puts
cli
hlt
main endp
puts proc
mov al, 160
mul posy
mov di, ax
cld
@@loop:
lodsb
cmp al, 0
je @@exit
stosb
inc di
jmp @@loop
@@exit:
inc posy
ret
puts endp
posy db 0
msg db 'hello, world', 0
end main