2 ; writechr: Write a single character in AL to the console without
3 ; mangling any registers. This does raw console writes,
4 ; since some PXE BIOSes seem to interfere regular console I/O.
15 test byte [UsingVGA], 08h
19 call write_serial ; write to serial port if needed
20 test byte [DisplayCon],01h ; Write to screen?
26 mov ah,03h ; Read cursor position
37 mov bl,07h ; White on black
39 mov ah,09h ; Write char and attribute
49 .curxyok: mov bh,[BIOS_page]
50 mov ah,02h ; Set cursor position
61 mov ax,0601h ; Scroll up one line
62 mov bh,[ScrollAttribute]
64 mov dx,[ScreenSize] ; The whole screen