Bochs VBE Extensions: Difference between revisions

Jump to navigation Jump to search
no edit summary
[unchecked revision][unchecked revision]
No edit summary
No edit summary
Line 14:
* 0xB0C3 - support for getting capabilities, support for using 8 bit DAC
* 0xB0C4 - [TODO: check and describe]
[TODO: if and when 4BPP modes are supported]
 
== Programming the BGA ==
Line 60 ⟶ 61:
 
=== Miscellaneous ===
[TODO: check and describe VBE_DISPI_INDEX_ID (with associated VBE_DISPI_IDx constants), VBE_DISPI_INDEX_VIRT_WIDTH/HEIGHT, VBE_DISPI_INDEX_X/Y_OFFSET, VBE_DISPI_GETCAPS, VBE_DISPI_8BIT_DAC]
 
=== Example code ===
Line 69 ⟶ 70:
outpw(VBE_DISPI_IOPORT_INDEX, IndexValue);
outpw(VBE_DISPI_IOPORT_DATA, DataValue);
}
 
unsigned short BgaReadRegister(unsigned short IndexValue)
{
outpw(VBE_DISPI_IOPORT_INDEX, IndexValue);
return inpw(VBE_DISPI_IOPORT_DATA);
}
 
int BgaIsAvailable(void)
{
return (BgaReadRegister(VBE_DISPI_INDEX_ID) == VBE_DISPI_ID4);
}
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu