my function does print, but it prints crap and ow wat i want it to. heres the code:
message db "hello world!",0
print:
mov si, message
mov ah, 0Eh
loop:
lodsb
cmp al, 00
jz exit
int 10h
jmp loop
exit:
ret
theres nothing wrong with my call to int 10h, cuz it prints wats in al to the screen. also, i got this code from some OS source.
message db "hello world!",0
print:
mov si, message
mov ah, 0Eh
loop:
lodsb
cmp al, 00
jz exit
int 10h
jmp loop
exit:
ret
theres nothing wrong with my call to int 10h, cuz it prints wats in al to the screen. also, i got this code from some OS source.