21 lines
200 B
PHP
21 lines
200 B
PHP
;Prints a string from si until a null.
|
|
|
|
printstr:
|
|
|
|
;Load a character
|
|
lodsb
|
|
|
|
;Check for the string end
|
|
cmp al, 0x0
|
|
je .done
|
|
|
|
;Print the character
|
|
mov ah, 0xe
|
|
int 0x10
|
|
|
|
;Repeat
|
|
jmp printstr
|
|
|
|
.done:
|
|
ret
|