China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 04:25
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » [Help] How to reboot the DOS system under DOS View 895 Replies 6
Original Poster Posted 2003-12-01 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 107
Posts 2
Joined 2003-12-01 00:00
22-year member
UID 13633
Gender Male
Status Offline
Experts, has anyone written a program that can reboot automatically under DOS, similar to shutdown under Windows?
Floor 2 Posted 2003-12-01 00:00 ·  中国 江西 吉安 电信
初级用户
Credits 182
Posts 27
Joined 2003-11-12 00:00
22-year member
UID 12731
Gender Male
Status Offline
Cold boot:
debug reset.com
-a 0100
JMP FFFF:0
INT 20
-RCX
0007
-W
-Q
Floor 3 Posted 2003-12-01 00:00 ·  中国 江西 吉安 电信
初级用户
Credits 182
Posts 27
Joined 2003-11-12 00:00
22-year member
UID 12731
Gender Male
Status Offline
Warm boot:
DEBUG BOOT.COM
-A 0100
MOV AX,0040
MOV DS,AX
MOV AX,1234
MOV SI,0074
MOV (SI),AX
JMP FFFF:0
INT 20
-RCX
0014
-W
-Q
Floor 4 Posted 2003-12-02 00:00 ·  中国 上海 浦东新区 电信
初级用户
Credits 107
Posts 2
Joined 2003-12-01 00:00
22-year member
UID 13633
Gender Male
Status Offline
Floor 5 Posted 2003-12-02 00:00 ·  中国 江西 吉安 电信
初级用户
Credits 182
Posts 27
Joined 2003-11-12 00:00
22-year member
UID 12731
Gender Male
Status Offline
Yeah, just not sure whether it meets your requirement?
Floor 6 Posted 2003-12-13 00:00 ·  中国 天津 南开区 电信
高级用户
★★
Credits 924
Posts 243
Joined 2003-07-09 00:00
23-year member
UID 6612
Gender Male
Status Offline
This method seems not to handle disk cache. Could that cause problems?
Floor 7 Posted 2003-12-19 00:00 ·  中国 广东 深圳 南山区 电信
初级用户
★★
鹰击长空
Credits 271
Posts 61
Joined 2003-08-20 00:00
22-year member
UID 8964
Gender Male
Status Offline
It will definitely cause problems!
When the BIOS was designed, it always assumed the CPU was being fully restarted, in real mode, and that important registers were in known states;
but when your program jumps directly to FFFF0h, the above assumptions are not guaranteed!
The system may be in protected mode, interrupts may be enabled, and a whole series of potential problems could cause the system to hang!
richard_zhang@yahoo.com.cn
适合的,就是最好的!
DOS,永远的初恋情人。
Forum Jump: