A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Homebuilt PC's
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

BIOS and divce driver & Interrupt handler?



 
 
Thread Tools Display Modes
  #1  
Old July 5th 03, 06:16 PM
Moonlit
external usenet poster
 
Posts: n/a
Default BIOS and divce driver & Interrupt handler?

Hi,

Communication with the bios (and in fact with DOS too) by so called
interrupt routines.

The interrupt vector table must be set up by the bios for this to work.
Basically what happens is that in a certain part (the lowest part) of memory
a table is created. This table consists of address in the bios where a
certain routine start (for instance to output text to your screen, or to
send something to the printer port).

Now when a program wants to clear the screen for instance, it could do it as
follows

xor ah,ah ; Clear the ah register (this will make ah 0 which means call the
function to change graphics mode)
mov al,6 ; Select 640*200 color graphics mode
int 0x10 ; Call the bios function

The ah always contains the function number (which a programmer should just
know). Other registers contain additional data. Then the function is called
by using an interrupt.

Regards Ron AF Greve.

"leza" wrote in message
le.rogers.com...
I am reading about the BIOS and the article says the following
----------------
quote
When you turn on your computer, the BIOS does several things. This is its
usual sequence:
1.. Check the CMOS Setup for custom settings
2.. Load the interrupt handlers and device drivers
3.. Initialize registers and power management
4.. Perform the power-on self-test (POST)
5.. Display system settings
6.. Determine which devices are bootable
7.. Initiate the bootstrap sequence
/end quote
-----------------

My question, in point #2,
1) BIOS load the interrupt handlers? where are these handlers? are they
software?
2) are the device drivers part of the BIOS?? if not where are they? how

the
BIOS loads them??




  #2  
Old July 6th 03, 11:27 PM
Andy
external usenet poster
 
Posts: n/a
Default

On Sat, 05 Jul 2003 17:02:04 GMT, "leza"
wrote:

I am reading about the BIOS and the article says the following
----------------
quote
When you turn on your computer, the BIOS does several things. This is its
usual sequence:
1.. Check the CMOS Setup for custom settings
2.. Load the interrupt handlers and device drivers
3.. Initialize registers and power management
4.. Perform the power-on self-test (POST)
5.. Display system settings
6.. Determine which devices are bootable
7.. Initiate the bootstrap sequence
/end quote
-----------------

My question, in point #2,
1) BIOS load the interrupt handlers? where are these handlers? are they
software?

These are BIOS interrupts, such as video, keyboard, and disk interrupt
routines.

2) are the device drivers part of the BIOS?? if not where are they? how the
BIOS loads them??

I assume they're referring to basic device drivers used to access the
hardware such as video, keyboard, disk, etc.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.