9 * Write a single character in AL to the console without
10 * mangling any registers; handle video pages correctly.
12 __export
void writechr(char data
)
14 com32sys_t ireg
, oreg
;
16 write_serial(data
); /* write to serial port if needed */
19 syslinux_force_text_mode();
21 if (!(DisplayCon
& 0x1))
26 ireg
.ebx
.b
[0] = 0x07; /* attribute */
27 ireg
.ebx
.b
[1] = *(uint8_t *)BIOS_page
; /* current page */
28 __intcall(0x10, &ireg
, &oreg
);
31 void pm_writechr(com32sys_t
*regs
)
33 writechr(regs
->eax
.b
[0]);