Quantcast
Viewing all articles
Browse latest Browse all 152

whats wrong with my pring function?

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.

Viewing all articles
Browse latest Browse all 152

Trending Articles