Solved

BIOS Programming?

Posted on 2004-04-13
3
946 Views
Last Modified: 2012-06-27
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?
0
Comment
Question by:palm_3333
3 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 170 total points
ID: 10816232
You are talking about INTterrupt vectors in BIOS.
But I dont think they will work because in multi user environment, a user is not allowed to write in another users dataarea.

http://www.htl-steyr.ac.at/~morg/pcinfo/hardware/interrupts/inte1at0.htm
http://www.xaff.org/GI/biosref.html
http://www.experts-exchange.com/Programming/Programming_Languages/Assembly/Q_20760109.html

Some of the Interrupts are OS specific... you cannot do anything about them.
 
0
 
LVL 22

Expert Comment

by:cookre
ID: 10817866
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.
0
 
LVL 1

Expert Comment

by:GigaPlus
ID: 10818763

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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now