rdos/kernel/chario.asm

36 lines
466 B
NASM
Raw Normal View History

; Reads a single character with echo
; out AL character
isr_getc_echo:
xor ax, ax
int 0x16
test al, al
jz isr_getc_echo
call putc
iret
2019-09-06 00:24:39 +02:00
; Reads a single character without echo
; out AL character
2019-09-06 00:24:39 +02:00
isr_getc:
xor ax, ax
int 0x16
test al, al
jz isr_getc
iret
; Prints a single character
; in DL character
2019-09-06 00:24:39 +02:00
isr_putc:
push ax
mov al, dl
call putc
pop ax
iret
putc:
2019-09-06 00:24:39 +02:00
push bx
mov ah, 0x0e
mov bx, 0x0000
int 0x10
pop bx
ret