summaryrefslogtreecommitdiff
path: root/rawcon.inc
diff options
context:
space:
mode:
Diffstat (limited to 'rawcon.inc')
-rw-r--r--rawcon.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rawcon.inc b/rawcon.inc
index 87e69fa8..9f02e4f2 100644
--- a/rawcon.inc
+++ b/rawcon.inc
@@ -13,6 +13,9 @@ writechr:
pop ds
call write_serial ; write to serial port if needed
pushfd
+ test byte [DisplayCon],01h ; Write to screen?
+ jz .nothing
+
pushad
mov bh,[BIOS_page]
push ax
@@ -43,6 +46,7 @@ writechr:
mov ah,02h ; Set cursor position
int 10h
.ret: popad
+.nothing:
popfd
pop ds
ret