19 lines
227 B
PHP
19 lines
227 B
PHP
|
;Reads a string to the buffer and prints it.
|
||
|
|
||
|
echo:
|
||
|
|
||
|
;Read a string
|
||
|
mov di, buffer
|
||
|
mov al, 0xff
|
||
|
call readstr
|
||
|
|
||
|
;Check for an empty string
|
||
|
cmp byte [buffer], 0x0
|
||
|
je .done
|
||
|
|
||
|
;Print the string
|
||
|
mov si, buffer
|
||
|
call println
|
||
|
|
||
|
.done:
|
||
|
ret
|