rdos/kernel/char.asm

12 lines
113 B
NASM
Raw Normal View History

getc: xor ax, ax
int 0x16
test al, al
jz getc
ret
putc: mov al, dl
mov ah, 0x0e
xor bx, bx
int 0x10
ret