inline UART_send_char function

This commit is contained in:
Tibo 2021-10-05 16:24:08 +02:00
parent aabea9d9f5
commit 308d16de0b
1 changed files with 10 additions and 7 deletions

View File

@ -45,7 +45,10 @@ int 0x10
mov ah, 0x00 ; Read character
int 0x16
call UART_send_char
; call UART_send_char
mov ah, 0x1
mov dx, 0x0
int 0x14
cmp al, 0x08 ; backspace
je change_color_mode
@ -67,12 +70,12 @@ int 0x10
;; CLOBBERS
;; - ax
;; - dx
UART_send_char:
mov ah, 0x01 ; transmit character
mov dx, 0x0 ; COM1
int 0x14
ret
;UART_send_char:
; mov ah, 0x01 ; transmit character
; mov dx, 0x0 ; COM1
; int 0x14
;
; ret
;; Update the color_mode variable with a byte from the keyboard
;;