2019-09-08 17:18:37 +02:00
|
|
|
; 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
|
|
|
|
2019-09-08 17:18:37 +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
|
2019-09-08 17:18:37 +02:00
|
|
|
iret
|
|
|
|
|
|
|
|
; Prints a single character
|
|
|
|
; in DL character
|
2019-09-06 00:24:39 +02:00
|
|
|
isr_putc:
|
2019-09-08 17:18:37 +02:00
|
|
|
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
|
2019-09-08 17:18:37 +02:00
|
|
|
ret
|