use easier to read logic

This commit is contained in:
2025-09-05 14:40:44 -04:00
parent fa4524aa59
commit 5fac10f02c

View File

@@ -110,9 +110,9 @@ ALIGN 4, db 0x90
PrintCharacter:
__CDECL16_ENTRY
.func:
movzx ax, byte [bp + 4] ; AL = character c
mov al, byte [bp + 4] ; AL = character c
mov ah, 0x0E ; INT 0x10, AH=0x0E call
mov bx, 0x0007 ; BH = page no. BL =Text attribute 0x07 is lightgrey font on black background
mov bx, 0x0007 ; BH = page no. BL =Text attribute
int 0x10 ; call video interrupt
; TODO: check for carry and clear carry before call
.endp: