aboutsummaryrefslogtreecommitdiffstats
path: root/ldlinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 71428fb9..ceb079fe 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -1055,12 +1055,15 @@ searchdir:
writechr:
call write_serial ; write to serial port if needed
pushfd
+ test byte [cs:DisplayCon], 01h
+ jz .nothing
pushad
mov ah,0Eh
mov bl,07h ; attribute
mov bh,[cs:BIOS_page] ; current page
int 10h
popad
+.nothing:
popfd
ret