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  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Here are BIOS addresses fro creating OS etc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-20-03, 05:39
0hayden0 0hayden0 is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Thumbs up Here are BIOS addresses fro creating OS etc

BIOS, Keyboard, Disks, Hard Disks, Video, Serial Ports, Parrallel
Ports, Clock and More...

Constants can be directly used by Peek.
The Addresses supplied here are in Segment:Offset form.
Each entry has address, size, decsription.

0040:000E 2 Bytes
Segment of Extended BIOS Area
0040:0010 Byte
POST Equipment Word
0040:0013 2 Bytes
Main Memmory Size in KB

0040:0017 Byte
Lock and Modifier Key States
0040:0018 Byte
Special Key States
0040:0096 Byte
Advanced Keyboard Flags
0040:0097 Byte
Advanced Keyboard Flags, and LED States
0040:001A 2 Bytes
Offset in segment 40 of First key in Key Board Buffer
0040:001C 2 Bytes
Offset in segment 40 of Last Key in Key Board Buffer
0040:0080 Bytes
Offset in segment 40 of the Start of the Key Board Buffer
0040:0082 2 Bytes
Offset in segment 40 of the End of the Key Board Buffer
0040:001E 32 Bytes
Standard Position for Keyboard Buffer
0040:0071 Byte
High Bit Set if Ctrl Break Occurs

0040:0041 Byte
Int 13s Return Status Byte
0040:0090 Byte
Media Type of Diskette 0
0040:0091 Byte
Media Type of Diskette 1
0040:0074 Byte
Status of last HDD operation
0040:0075 Byte
Number of HDDs n.b. Some BIOSes include CD-ROMS

0040:0049 Byte
Current Video Mode n.b. #FF if SVGA ?
0040:004A 2 Bytes
Number of Columns n.b. #50 if 80 columns
0040:004C 2 Bytes
Number of bytes in a page n.b. not always exact
0040:004E 2 Bytes
* Offset of cuurent page to video segment.
0040:0050 16 Bytes
Cursor Positions on all pages
0040:0062 Byte
Current Page Number
0040:0063 2 Bytes
Base Port Number for Monitor
0040:0066 Byte
Info On Last colour used in text mode
0040:0084 Byte
Number of rows (EGA+)
0040:0085 Word
Scan Line Height of a Character (EGA+)
0040:0088 Byte
Options for Video Card (EGA+)
0040:00A8 4 Bytes
Pointer to Video Control Block (EGA+)
B000:0000 4K
Start of Monochrome Text Memory
B800:0000 32K
Start of Colour Text Memmory
A000:0000 64K
Start of Graphics Memmory

0040:0000 2 Bytes
Address of Serial Port 1
0040:0002 2 Bytes
Address of Serial Port 2
0040:0004 2 Bytes
Address of Serial Port 3
0040:0006 2 Bytes
Address of Serial Port 4

0040:0008 2 Bytes
Address of Parallel Port 1
0040:000A 2 Bytes
Address of Parallel Port 2
0040:000C 2 Bytes
Address of Parallel Port 3

0040:00CE 2 Bytes
Days since 1980
0040:0100 Byte
Status Of Print Screen
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On