Stupid question about text printing
Stupid question about text printing
OK, i've figured out how to write text using function 0Eh of interrupt 10h. But how do i write coloured text? I know there's something like an attribute byte, but how do I set it?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Stupid question about text printing
i guess you should use int 10h, function 09h instead... it has the opportunity of selecting the attribute byte (foreground_color+backgroundcolor*16, on most VGA text modes).
However, if you plan to use this to display text strings, you'll not have a fast output *at all*. Consider using int 10h, function 13h instead.
However, if you plan to use this to display text strings, you'll not have a fast output *at all*. Consider using int 10h, function 13h instead.
Re:Stupid question about text printing
Thread "Quick Links", Posting #3 "BIOS and POST variables list", Interrupts, Int 10h, Int 10h 0eh leads you to http://www.clipx.net/ng/bios/ng10576.php.
Every good solution is obvious once you've found it.
Re:Stupid question about text printing
I think you have to set the BH register with the color attribute.