![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 11:26 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » [Help] How to reboot the DOS system under DOS |
| Printable Version 1,053 / 6 |
| Floor1 jeff_yu | Posted 2003-12-01 00:00 |
| 初级用户 Posts 2 Credits 107 | |
|
Experts, has anyone written a program that can reboot automatically under DOS, similar to shutdown under Windows?
|
|
| Floor2 冷石_jasv | Posted 2003-12-01 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
Cold boot:
debug reset.com -a 0100 JMP FFFF:0 INT 20 -RCX 0007 -W -Q |
|
| Floor3 冷石_jasv | Posted 2003-12-01 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
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 |
|
| Floor4 jeff_yu | Posted 2003-12-02 00:00 |
| 初级用户 Posts 2 Credits 107 | |
| Floor5 冷石_jasv | Posted 2003-12-02 00:00 |
| 初级用户 Posts 27 Credits 182 | |
|
Yeah, just not sure whether it meets your requirement?
|
|
| Floor6 aria | Posted 2003-12-13 00:00 |
| 高级用户 Posts 243 Credits 924 | |
|
This method seems not to handle disk cache. Could that cause problems?
|
|
| Floor7 笑傲江湖 | Posted 2003-12-19 00:00 |
| 初级用户 Posts 61 Credits 271 | |
|
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! [email protected] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |