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:26
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Source code of a soft shutdown program under DOS View 5,764 Replies 25
Floor 16 Posted 2003-07-24 00:00 ·  中国 广东 汕尾 电信
中级用户
★★
Credits 417
Posts 137
Joined 2003-05-30 00:00
23-year member
UID 2638
Gender Male
Status Offline
Floor 17 Posted 2003-07-26 00:00 ·  中国 北京 联通
初级用户
Credits 102
Posts 1
Joined 2003-07-26 00:00
23-year member
UID 7536
Gender Male
Status Offline
If it's a soft boot, then jmp ffff:0000. For a more thorough and lower-level one, it's out 64,fe
Floor 18 Posted 2003-07-26 00:00 ·  中国 香港
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
The following is a quote from 021850524 on July 26, 2003 at 14:28:29:
If it's a soft boot, then jmp ffff:0000
For a more thorough and lower-level one, it's out 64,fe
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:\>
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 19 Posted 2003-07-27 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The following is a quote from lydong on 2003-4-7 12:46:41:
There are already so many programs for soft shutdown and restart, but there is no program that can directly restart DOS. The following programs all cannot restart DOS smoothly. They all freeze when the startup screen just appears. May I ask who has a way?


Use GRUB for DOS, which can realize starting (the same or another) DOS directly under DOS.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 20 Posted 2003-08-14 00:00 ·  中国 广东 广州 白云区 电信
初级用户
Credits 163
Posts 17
Joined 2003-08-13 00:00
22-year member
UID 8500
Gender Male
Status Offline
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.
Floor 21 Posted 2003-08-14 00:00 ·  中国 广东 广州 白云区 电信
初级用户
Credits 163
Posts 17
Joined 2003-08-13 00:00
22-year member
UID 8500
Gender Male
Status Offline
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?




Floor 22 Posted 2003-08-14 00:00 ·  中国 广东 广州 白云区 电信
初级用户
Credits 163
Posts 17
Joined 2003-08-13 00:00
22-year member
UID 8500
Gender Male
Status Offline
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.

Floor 23 Posted 2003-09-08 00:00 ·  中国 河南 漯河 联通
初级用户
Credits 110
Posts 4
Joined 2003-09-04 00:00
22-year member
UID 9457
Gender Male
Status Offline
I need a detailed introduction to the use of MASM. Thank you!!!
My email: lhyh@371.net. QQ: 80847753
Floor 24 Posted 2003-09-11 00:00 ·  中国 广东 深圳 南山区 电信
初级用户
★★
鹰击长空
Credits 271
Posts 61
Joined 2003-08-20 00:00
22-year member
UID 8964
Gender Male
Status Offline
I wonder if I need to meet two conditions first:
1. BIOS supports APM/ACPI function;
2. ATX power. What does the moderator think?
适合的,就是最好的!
DOS,永远的初恋情人。
Floor 25 Posted 2004-06-30 00:00 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
23-year member
UID 6296
Gender Male
Status Offline
Is there a C language source code?
Floor 26 Posted 2009-07-30 06:18 ·  中国 湖北 武汉 电信
新手上路
Credits 14
Posts 9
Joined 2008-11-24 19:17
17-year member
UID 131988
Gender Male
Status Offline
... 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?
Forum Jump: