中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-01 20:45
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » 哪位大哥指导BIOS的启动顺序在哪里? 查看 1,356 回复 5
楼 主 哪位大哥指导BIOS的启动顺序在哪里? 发表于 2006-11-18 03:48 ·  中国 山东 济南 教育网
高级用户
★★
积分 506
发帖 187
注册 2005-12-04 22:41
20年会员
UID 46500
性别 男
状态 离线
在bios中有调节他们的启动顺序,现在我想通过程序读出来,并修改他们,该怎么做呢?
2 发表于 2006-11-20 12:35 ·  中国 山东 济南 教育网
高级用户
★★
积分 506
发帖 187
注册 2005-12-04 22:41
20年会员
UID 46500
性别 男
状态 离线
弟兄们,我知道肯定可以做,但是我不知道怎么去找到他们的位置,和改写他们的顺序。
希望了解的朋友多多指点。
3 发表于 2006-11-21 00:30 ·  中国 湖南 长沙 电信
中级用户
★★
积分 282
发帖 126
注册 2006-05-17 22:29
20年会员
UID 55724
状态 离线
应该保存在CMOS中
但每款主板都不同
人类存在的目的就是试图理解人类为何存在
4 发表于 2006-11-21 11:51 ·  中国 山东 济南 联通
高级用户
★★
积分 506
发帖 187
注册 2005-12-04 22:41
20年会员
UID 46500
性别 男
状态 离线
我觉得每款主板是不一样,但是应该有一个标准吧,比如使用某个端口或者中断可以读取这些数据.
5 发表于 2006-11-21 22:47 ·  中国 湖南 长沙 电信
中级用户
★★
积分 282
发帖 126
注册 2006-05-17 22:29
20年会员
UID 55724
状态 离线
就是70端口
访问CMOS RAM



----------P0070007F--------------------------
PORT 0070-007F - CMOS RAM/RTC (REAL TIME CLOCK)
Note: the real-time clock may be either a discrete MC146814, MC146818, or
an emulation thereof built into the motherboard chipset
SeeAlso: PORT 00A0h"XT"

0070 -W CMOS RAM index register port (ISA, EISA)
bit 7 = 1 NMI disabled from reaching CPU
= 0 NMI enabled
bit 6-0 CMOS RAM index
(64 bytes in early systems, now usually 128 bytes)
Note: any write to PORT 0070h should be followed by an action to
PORT 0071h or the RTC wil be left in an unknown state.
0071 RW CMOS RAM data port (ISA, EISA) (see #P0409)

(Table P0409)
Values for Real-Time Clock register number (see also CMOS.LST):
00h-0Dh clock registers
0Eh diagnostics status byte
0Fh shutdown status byte
10h diskette drive type for A: and B:
11h reserved / IBM fixed disk / setup options
12h fixed disk drive type for drive 0 and drive 1
13h reserved / AMI Extended CMOS setup (AMI Hi-Flex BIOS)
14h equipment byte
15h LSB of system base memory in Kb
16h MSB of system base memory in Kb
17h LSB of total extended memory in Kb
18h MSB of total extended memory in Kb
19h drive C extension byte
1Ah drive D extension byte
1Bh-2Dh reserved
20h-27h commonly used for first user-configurable drive type
2Eh CMOS MSB checksum over 10-2D
2Fh CMOS LSB checksum over 10-2D
30h LSB of extended memory found above 1Mb at POST
31h MSB of extended memory found above 1Mb at POST
32h date century in BCD
33h information flags
34h-3Fh reserved
35h-3Ch commonly used for second user-configurable drive type
3Dh-3Eh word to 82335 MCR memory config register at [22] (Phoenix)
42h-4Ch AMI 1990 Hyundai super-NB368S notebook
???
54h-57h AMI 1990 Hyundai super-NB368S notebook
???
5Ch-5Dh AMI 1990 Hyundai super-NB368S notebook
???
60h-61h AMI 1990 Hyundai super-NB368S notebook
???
人类存在的目的就是试图理解人类为何存在
6 发表于 2006-11-22 11:17 ·  中国 山东 济南 教育网
高级用户
★★
积分 506
发帖 187
注册 2005-12-04 22:41
20年会员
UID 46500
性别 男
状态 离线
读取bios的端口因该就是70和71端口了。但是我不知道如何修改启动顺序。不过还是谢谢5楼弟兄。
论坛跳转: