BIOS write char function in graphics mode
Posted: Tue Oct 15, 2013 2:33 pm
BIOS int 0x10 ah=0xa (print char in cursor position in teletype mode) can be used also in graphics mode.
In: AL=char, BH=page(only in text mode), BL=char color(only in graphics mode). I tried it in VGA 320x200x8 mode and it prints on black background. How can I change background color? I tried to pass bgcolor in BH (somewhere I saw this variant) - the same black. I tried to use ah=0xb bh=0x00 bl=bgcolor - the same black. Any other variants? I can steal font from VGA memory before I switch to graphics mode and do it by hand, but may be this can be solved easier? And what about transparent bgcolor?
In: AL=char, BH=page(only in text mode), BL=char color(only in graphics mode). I tried it in VGA 320x200x8 mode and it prints on black background. How can I change background color? I tried to pass bgcolor in BH (somewhere I saw this variant) - the same black. I tried to use ah=0xb bh=0x00 bl=bgcolor - the same black. Any other variants? I can steal font from VGA memory before I switch to graphics mode and do it by hand, but may be this can be solved easier? And what about transparent bgcolor?