inline UART_send_char function

This commit is contained in:
Tibo 2021-10-05 16:24:08 +02:00
parent aabea9d9f5
commit 308d16de0b

View file

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