2021-05-30 16:12:19 +00:00
|
|
|
;Reads a string to the buffer and prints it.
|
|
|
|
|
|
|
|
echo:
|
|
|
|
|
|
|
|
;Read a string
|
|
|
|
mov di, buffer
|
|
|
|
mov al, 0xff
|
2021-06-01 18:31:20 +00:00
|
|
|
call readln
|
2021-05-30 16:12:19 +00:00
|
|
|
|
|
|
|
;Check for an empty string
|
|
|
|
cmp byte [buffer], 0x0
|
|
|
|
je .done
|
|
|
|
|
|
|
|
;Print the string
|
|
|
|
mov si, buffer
|
|
|
|
call println
|
|
|
|
|
|
|
|
.done:
|
2021-06-08 12:25:17 +00:00
|
|
|
ret
|