Link to home
Start Free TrialLog in
Avatar of palm_3333
palm_3333

asked on

BIOS Programming?

Hello,

Does the BIOS have Hex codes that you can use to preform actions and put them into program to use, take windows OS for example it calls its Functions when it's about to shut down, than the BIOS does the rest of the shutting down, Hard Drives and Other stuff. There are Win SDK's but don't they just use program functions to let Windows do the rest of the Re-Start/Shutting down? Is their actual RAW hex to do this job, and would Windows take over if this was executed, or would all the computer Hardware just in a flash turn off?

C Programming,
Fake EXAMPLE: #define SHUTDOWN 0x0449

A RAW hex command of that sort would it do the job for Most BIOSs?
ASKER CERTIFIED SOLUTION
Avatar of venkateshwarr
venkateshwarr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Starting with NT and up, you have several problems:

1) BIOS code uses real mode addressing, while the OS uses protected mode addressing, hence, the OS traps any attempt to either put the CPU into real mode or to trigger BIOS routines via interrupts.

2) In order to maintain control over hardware devices (hard drives, bus controllers, CMOS, et al), the OS takes great exception to attempts to directly access their controlling ports via the various out* instructions.
Avatar of GigaPlus
GigaPlus


BIOS does have a lot of functionality. Though vast majority is designed for MS-DOS.

After the power on - self tests ... the BIOS is gerneally unusable once the computer has started loading a modern operating system. The processor changes into a very different mode mostly imcompatible with the BIOS services.

So unless you are planning to use DOS then you would be better of looking at the Basic Input Out System of your OS.