Documente Academic
Documente Profesional
Documente Cultură
qc
7/28/00
13:53
Page 685
A P P E N D I X
Memory
Maps and BIOS
Data Areas
3510-2 appA.f.qc
686
7/28/00
13:53
Page 686
Appendixes
Table A-1
DOS Memory Map
Address
Size
Contents/Use
0:00009:FFFFh
640K
0:00000:01DFh
480K
Interrupt vectors
0:01E00:02FFh
288K
User vectors
0:03000:03FFh
256K
0:04000:04FFh
256K
0:05000:05FFh
256K
0:06009:FFFFh
638K
A:0000B:FFFFh
128K
C:0000E:FFFFh
192K
F:0000F:FFFFh
64K
10:0000up
Extended memory
14.9MB 80286
30.9MB 80386, 80486
10:000010:FFFFh
64K
10:0000FD:FFFFh
14.9MB
Extended memory
FE:0000FF:FFFFh
128K
3510-2 appA.f.qc
7/28/00
13:53
Page 687
Table A-2
DOS Low Memory Locations
Address
Description
0000h
0001h
0002h
0003h
0004h
0005h
0006h
0007h
0008h
0009h
000Ah
000Bh
000Ch
000Dh
000Eh
000Fh
0019h
0020h
0021h
0022003Fh
0040h
0041h
PIT Channel 1
0042h
PIT Channel 2
0043h
0044h
687
3510-2 appA.f.qc
688
7/28/00
13:53
Page 688
Appendixes
Description
0047h
0048h
0060h
0060h
0061h
0061h
0062h
0063h
0064h
0064h
0066006Fh
0070h
0071h
3510-2 appA.f.qc
7/28/00
13:53
Page 689
Address
Description
0071h
(continued)
11h = Reserved
12h = Fixed Drive Types
(Bits 74 = Drive 0; Bits 30 = Drive 1)
13h = Reserved
14h = Equipment Byte
15h = Base Memory in K (Low)
16h = Base Memory in K (High)
17h = Extended Memory in K (Low)
18h = Extended Memory in K (High)
19h = Extended Drive Type (16+) 1st Disk
1Ah = Extended Drive Type (16+) 2nd Disk
1B27h = Reserved
2Eh = High Byte, Checksum for 102Dh
2Fh = Low Byte, Checksum for 102Dh
30h = Extended Memory by POST (low byte)
31h = Extended Memory by POST (high byte)
32h = Century in BCD
333Fh = Reserved
0080h
0081h
0082h
0083h
0084h
0085h
0086h
0087h
0088h
0089h
008Ah
008Bh
008Ch
008Dh
008Eh
008Fh
00A0h
00A0h
689
3510-2 appA.f.qc
690
7/28/00
13:53
Page 690
Appendixes
Description
00A1h
00C0h
00C2h
00C4h
00C6h
00C8h
00CAh
00CCh
00CEh
00D0h
00D2h
00D4h
00D6h
00D8h
00DAh
00DCh
00DEh
00DF00EFh
Reserved
00F0h
00F1h
00F2FFh
Math Coprocessor
0100016Fh
Reserved
0170h0177h
AT-ISA and EISA Secondary Fixed Disk Addresses (see 01F001F7h for
information)
01F0h
01F1h
01F2h
01F3h
01F4h
01F5h
3510-2 appA.f.qc
7/28/00
13:53
Page 691
Address
Description
01F6h
01F7h
0200020Fh
02100217h
0278h
0279h
027Ah
02B002DFh
Reserved
02E1h
02E2h
02E3h
02E402F7h
Reserved
02F8h
02F9h
02FAh
02FBh
02FCh
02FDh
02FEh
02FFh
0300031Fh
Prototype Card
0320h
0322h
0324h
03250347h
Reserved
03480357h
DCA 3278
0360036Fh
PC Network
03720377h
0378h
0379h
037Ah
691
3510-2 appA.f.qc
692
7/28/00
13:53
Page 692
Appendixes
Description
0380038Fh
03900393h
Cluster Adapter 0
03A003AFh
03B003B3h
03B4h
03B5h
03B8h
03BAh
03BCh
03BDh
03BEh
03BFh
03C0h
03C2h
CGA, EGA, VGA Input Status Register and Misc. Output Register
03C4h
03C5h
03C6h
3510-2 appA.f.qc
7/28/00
13:53
Page 693
Address
Description
03C7h
03C8h
03C9h
03CAh
03CCh
03CDh
03CEh
03CFh
Other VGA Register (EGA also uses 03B45h, 03BAh, 03D45h, and
03DAh) (buffer at A0000h)
03D4h
03D5h
03D8h
03D9h
03DAh
03DBh
Video Register
03DCh
Video Register
03DDh
Video Register
03DEh
Video Register
Continued
693
3510-2 appA.f.qc
694
7/28/00
13:53
Page 694
Appendixes
Description
03DFh
Video Register
03F0h
03F1h
03F2h
03F4h
03F5h
03F6h
03F7h
03F8h
03F9h
03FAh
03FBh
03FCh
03FDh
03FEh
03FFh
0401h
0403h
0405h
0407h
040Ah
040Bh
0461h
0462h
0464h
0465h
0481h
0482h
0483h
3510-2 appA.f.qc
7/28/00
13:53
Page 695
Address
Description
0487h
0489h
048Ah
048Bh
04C6h
04CAh
04CEh
04D0h
04D1h
04D4h
04D6h
06E206E3h
07900793h
Cluster Adapter 1
080008FFh
0AE20AE3h
Cluster Adapter 2
0B900B93h
Cluster Adapter 2
0C00h
0C800C83h
13901393h
Cluster Adapter 3
23902393h
Cluster Adapter 4
3220h
3221h
3222h
3223h
3224h
3225h
3226h
3227h
3228h
3229h
322Ah
695
3510-2 appA.f.qc
696
7/28/00
13:53
Page 696
Appendixes
Note
Address
Description
322Bh
322Ch
322Dh
322Eh
322Fh
323042E0h
Reserved
42E1h
42E262E0h
Reserved
62E1h
62E282E0h
Reserved
82E1h
82E2A2E0h
Reserved
A2E1h
A2E2AFFEh
Reserved
AFFFh
B000C2E0h
Reserved
C2E1h
C2E2E2E0h
Reserved
E2E1h
E2E2FFFFh
Reserved
Although the listed addresses of 3BCh for Port 1, 378h for Port 2, and 278h for
Port 3 are common in many BIOS and programming references, most parallel port
cards address Port 1 as 378h, Port 2 as 278h, and Port 3 (rarely used) as 3BCh. A
function of BIOS, if only one port card exists, is to direct it as Port 1, despite the
actual hardware address. This enables printing to a default device (PRN: or LPT:),
if any port exists.
3510-2 appA.f.qc
7/28/00
13:53
Page 697
Table A-3
BIOS Data Area
Address
Size
Contents
0:400h
0:402h
0:404h
0:406h
0:408h
0:40Ah
0:40Ch
0:40Eh
0:410h
697
3510-2 appA.f.qc
698
7/28/00
13:53
Page 698
Appendixes
Size
Contents
10 = Color 80 25
11 = B&W 80 25
Bit 3 Reserved
Bit 2 Pointing device
Bit 1 Math coprocessor
Bit 0 Disk for boot
0:410h
(continued)
0:412h
Bits 71 Reserved
Bit 01 = Mfg. test mode
0 = Nontest mode
0:413h
0:417h
Keyboard flags:
Bit 7 Insert on
Bit 6 Caps Lock on
Bit 5 Num Lock on
Bit 4 Scroll Lock on
Bit 3 Alt pressed
Bit 2 Ctrl pressed
Bit 1 Left Shift pressed
Bit 0 Right Shift pressed
0:418h
Keyboard flags:
Bit 7 Insert on
Bit 6 Caps Lock on
Bit 5 Num Lock on
Bit 4 Scroll Lock on
Bit 3 Ctrl+Num Lock on
Bit 2 SysRq pressed
Bit 1 Left Alt pressed
Bit 0 Right Alt pressed
0:419h
0:41Ah
0:41Ch
0:41Eh
32
0:43Eh
3510-2 appA.f.qc
7/28/00
13:53
Page 699
Address
Size
Contents
0:43Fh
0:440h
0:441h
0:442h
0:449h
Video mode
0:44Ah
0:44Ch
0:44Eh
Page address
0:450h
16
0:460h
0:462h
0:463h
0:465h
699
3510-2 appA.f.qc
700
7/28/00
13:53
Page 700
Appendixes
Size
Contents
0:466h
0:467h
0:469h
0:46Bh
Last interrupt
0:46Ch
0:46Eh
0:470h
0:471h
Control-Break flag
0:472h
RESET flag:
1234h = Bypass memory test
4321h = Preserve memory
64h = Special mode
0:474h
0:475h
0:476h
0:477h
3510-2 appA.f.qc
7/28/00
13:53
Page 701
Address
Size
Contents
0:478h
0:47Ch
0:480h
0:482h
0:48Bh
0:48Ch
0:48Dh
0:48Eh
0:48Fh
0:490h
701
3510-2 appA.f.qc
702
7/28/00
13:53
Page 702
Appendixes
Size
0:490h
(continued)
Contents
010 = Try 1.2 in 1.2MB drive
001 = Try 360K in 1.2MB drive
000 = Try 360K in 360K drive
0:491h
0:492h
0:494h
0:495h
0:496h
Keyboard status:
Bit 7 = Read ID in progress
Bit 6 = Last code was first ID
Bit 5 = Forced Num Lock
Bit 4 = Enhanced keyboard
Bit 3 = Right Alt pressed
Bit 2 = Right Ctrl pressed
Bit 1 = Last code was E0h
Bit 0 = Last code was E1h
0:497h
Status byte:
Bit 7= Error flag for keyboard command
Bit 6 = LED update
Bit 5 = RESEND received from keyboard
Bit 4 = ACK received from keyboard
Bit 3 = Reserved
Bit 2 = Caps Lock LED On
Bit 1 = Num Lock LED On
Bit 0 = Scroll Lock LED On
3510-2 appA.f.qc
7/28/00
13:53
Page 703
Address
Size
Contents
0:498h
0:49Ah
0:49Ch
0:49Eh
0:4A0h
0:4B0h
Reserved
As shown in Tables A-4 and A-5, the memory above the standard 640K program
memory in the first megabyte of a PCs memory is used to provide access to the
video memory and to provide access to places to store and run adapter ROMs, as
well as to provide access to the ROM BIOS, which provides the PC with its basic
connections to the outside world.
Table A-4
PC High Memory Area Map
Address
Size
Contents
A:0000B:FFFFh
128K
A:0000A:FFFFh
64K
A:0000B:FFFFh
128K
B:0000B:7FFFh
32K
B:8000B:FFFFh
32K
C:0000E:FFFFh
192K
C:0000C:3FFFh
16k
C:6000C:63FFh
1K
PGA area
C:8000C:BFFFh
16K
D:0000D:FFFFh
64K
D:0000D:7FFFh
32K
Cluster adapter
E:0000E:FFFFh
64K
703
3510-2 appA.f.qc
704
7/28/00
13:53
Page 704
Appendixes
The address range from E:0000FFFF provides for many options, adapters, and
application program use, depending on the chips used, installed devices, manufacturer, and other variables.
Note
Table A-5
BIOS and Extended Memory Area
Address
Size
Contents
F:0000F:FFFFh
64K
10:0000up
Extended Memory:
14.9MB 80286
30.9MB 80386,80486
10:000010:FFFFh
64K
10:0000FD:FFFFh
14.9MB
Extended memoryl
FE:0000FF:FFFFh
128K