Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
As a first requirement, your code must execute in an enviroment that grants direct hardware access, either in real mode or in protectec mode with supervisor (kernel) privileges.
Then you have to write your own drivers respectively BIOS. You should however consider, that a video card supplies it's own BIOS as a wrapper for direct hardware access. If you don't use it, you have to know all specific hardware details of your video card. Also modern PC hardware has a lot of chipset specific properties, that would be hard to control without the built-in BIOS.
You have a fair chance, if you start with old XT or AT boards, that uses exclusively standard hardware with wellknown addresses and register function.