Inner workings of a BIOS
Posted: Thu May 31, 2012 12:23 am
Hello
I am wondering how BIOSes in general work.
Here is what I can think of along with some respective questions after some searching:
Each BIOS is custom for that motherboard. Thus, it knows all of the ports, busses etc... very well.
My question is, how does the BIOS communicate with the motherboard devices? For example, in Real Mode, the BIOS is accessed via INT 10H for instance. I assume that when the CPU receives this command, it looks up the vector in the IVT and jumps to that command. Would these commands then use IN & OUT commands to communicate with each device using specific addresses for that individual motherboard?
Also, when the computer loads, is the BIOS coppied into the first MiB of RAM?
Thank you very much for your help,
Richard Hughes
I am wondering how BIOSes in general work.
Here is what I can think of along with some respective questions after some searching:
Each BIOS is custom for that motherboard. Thus, it knows all of the ports, busses etc... very well.
My question is, how does the BIOS communicate with the motherboard devices? For example, in Real Mode, the BIOS is accessed via INT 10H for instance. I assume that when the CPU receives this command, it looks up the vector in the IVT and jumps to that command. Would these commands then use IN & OUT commands to communicate with each device using specific addresses for that individual motherboard?
Also, when the computer loads, is the BIOS coppied into the first MiB of RAM?
Thank you very much for your help,
Richard Hughes