![]() |
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 10:06 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » Source code of a soft shutdown program under DOS |
| Printable Version 6,346 / 25 |
| Floor16 maple | Posted 2003-07-24 00:00 |
| 中级用户 Posts 137 Credits 417 | |
| Floor17 021850524 | Posted 2003-07-26 00:00 |
| 初级用户 Posts 1 Credits 102 | |
|
If it's a soft boot, then jmp ffff:0000. For a more thorough and lower-level one, it's out 64,fe
|
|
| Floor18 Roy | Posted 2003-07-26 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
The following is a quote from 021850524 on July 26, 2003 at 14:28:29:Is this referring to this? C:\>debug -a ****:0100 mov al,fe ****:0102 out 64,al ****:0104 -rcx CX 0000 :4 -nreset.com -w Writing 00004 bytes -q C:\> |
|
| Floor19 Wengier | Posted 2003-07-27 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is a quote from lydong on 2003-4-7 12:46:41: Use GRUB for DOS, which can realize starting (the same or another) DOS directly under DOS. |
|
| Floor20 斑马王子 | Posted 2003-08-14 00:00 |
| 初级用户 Posts 17 Credits 163 | |
|
I've done both for the sixth floor and the second floor, but it doesn't shut down after execution. Why? When using masm, the exe file is successfully generated, but there's no result after execution. Why? Please give instructions.
|
|
| Floor21 斑马王子 | Posted 2003-08-14 00:00 |
| 初级用户 Posts 17 Credits 163 | |
|
And I successfully compiled the obj file using masm. But I'm not sure if there's a problem when I link it into an exe file.
c:\>link poweroff.obj run file I just pressed Enter here list file pressed Enter directly libraries pressed Enter directly warning:no stack segment I know I must have made a mistake here. I used it a long time ago but now I've forgotten. Could any brother help? |
|
| Floor22 斑马王子 | Posted 2003-08-14 00:00 |
| 初级用户 Posts 17 Credits 163 | |
|
Dear experts, I made a mistake. After I finished the program, I ran it under Windows. I forgot that this program is used to shut down DOS. Now the problem is solved.
|
|
| Floor23 lhyh | Posted 2003-09-08 00:00 |
| 初级用户 Posts 4 Credits 110 | |
|
I need a detailed introduction to the use of MASM. Thank you!!!
My email: [email protected]. QQ: 80847753 |
|
| Floor24 笑傲江湖 | Posted 2003-09-11 00:00 |
| 初级用户 Posts 61 Credits 271 | |
|
I wonder if I need to meet two conditions first:
1. BIOS supports APM/ACPI function; 2. ATX power. What does the moderator think? |
|
| Floor25 profree | Posted 2004-06-30 00:00 |
| 中级用户 Posts 132 Credits 478 | |
|
Is there a C language source code?
|
|
| Floor26 f319 | Posted 2009-07-30 06:18 |
| 新手上路 Posts 9 Credits 14 | |
|
... Hey, you guys are still using the system interrupts. But you still don't know exactly how it shuts down. That is, you don't know how that interrupt program manages to shut down...
... Rebooting is simple. As long as you set cs:ip to ffff:0000, so in debug, a jmp ffff:0000 can reboot. (But this doesn't save any data)... The reason this reboot works is because when the system boots up, cs:ip is set to ffff:0000, and the first instruction the system executes is at ffff:0000... .... But how to shut down? |
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |