|
Inside a Bios interrupt
|
|
07-18-2010, 04:47 AM
(This post was last modified: 07-18-2010 04:53 AM by dumb_terminal.)
Post: #1
|
|||
|
|||
|
Inside a Bios interrupt
What is segment... the noobs (and i am one) visualize it as a fixed size text container, and offset is the line
segmentno starting from 0. +--------- + | offset 0| | offset 1| | offset 2| | offset 3| | offset 4| | offset 5| +-----------+ well u get the idea... Now where to begin ?? Some wise person heuristically searched the memories and found out in a certain position os keeps the IVT (that is the address tables of the interrupts function). It is stored in a segment, where offset 0 is offset no of that INT0 and offset 2 is segment no of that INT0, then offset 4 is offset of INT1 and offset 6 contains segment no of INT1....u get the idea.
The main thing is the addressing is expressed as an offset from a beginning of a segment. suppose the offset 0 cntains E044 and offset 2 contains FF08
then we will know there is a segment addressed FF08 and the code for the interupt is located at (from the begining of the seegment) E044 no adress. There are a lot of histories..why things are like this..if u are interested u can search the net, people like to vomit theory when it comes to assembly. Well today we will replace the code of a particular interrupt with our own code. There is a private BIOS dancer interrupt numbere 8 which calls a particular function 1CH, every 18 times a sec. Actually ur motherboards timer chip is activated 18 times a sec and calls INT8h. We will take this opportunity to make a watch, suitable as we can't just try to synchronize yet. The code is well commented....u can learn as u go. Code: ; A simple watch to display time continouslyNow what new things we learn here --
1.macro ( a shorthand) 2. procedures (really important u shuld have a good grasp of procedures and stack) 3. a basic vedio handling 4. two pseudo ops - offset - returns the params offset in current segment seg - return the segment umbern. 2gather u can calculate the real address Finally i have 2 apologize to u guys...that i can't contribute that much..u know can't find time these days. so plz 4give me. and lastly if u have any confusion about assembly or finding it hard to grasp (most of u shuldn't have problem u guys r h4ck3rs), u can pm me or comment here, when i will get time (i think its in the mid of next month) i will try to write easy to understand 20 part crash course in assembly. Hats off, hope to be back soon, have a nice time guyz. ![]() My codes are not full of Bugs, they are full of Spiders. |
|||
|
07-18-2010, 05:02 AM
Post: #2
|
|||
|
|||
|
RE: Inside a Bios interrupt
very useful information thanx for shareing i need this i was search around but didnt get
thanx again (Bios interrupt) Isectech.net |
|||
|
07-18-2010, 05:09 AM
Post: #3
|
|||
|
|||
|
RE: Inside a Bios interrupt
hey always for the community bro.
My codes are not full of Bugs, they are full of Spiders. |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help




