EttinOS/src/ECHO.INC

22 lines
244 B
Plaintext

;Reads a string to the buffer and prints it.
echo:
;Read a string
mov di, buffer
mov al, 0xff
mov ah, 0x3
int 0x21
;Check for an empty string
cmp byte [buffer], 0x0
je .done
;Print the string
mov si, buffer
mov ah, 0x2
int 0x21
.done:
ret