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