fox32os/applications/terminal/stream.asm

15 lines
260 B
NASM

; stream IO routines
; write a character to the terminal
; inputs:
; r0: pointer to ASCII character
stream_write_to_terminal:
movz.8 r0, [r0]
jmp print_character_to_terminal
stream_get_input:
mov r0, [read_buffer]
ret
read_buffer: data.32 0