[comp.os.msdos.programmer] MSDOS "reboot" program

aliamus@hpcc01.HP.COM (Steve Aliamus) (10/04/90)

Here is the one I use:

C:\> debug
-a
XXXX:0100 jmp ffff:0000
XXXX:0105
-rcx
CX 0000
:5
-n reboot.com
-w
Writing 0005 bytes
-q

That's it.  I believe this code generates a "cold" reboot.

stever@Octopus.COM (Steve Resnick ) (10/04/90)

In article <68@beep.UUCP> kris@beep.UUCP (Port'naybl) writes:
>[Auctioneers talk at 9600 baud.]
>
>     We've been having some problems here at "beep" recently, mostly users
>that aren't "root" or "news" not having their articles leaving this site.
>Please bear with me if this is a repeat...
>
>    A few weeks ago, someone posted a 5 byte program that could be entered
>into memory with the debugger, and then be saved as a runnable program.
>Could someone please send me a copy?
>

Use this:

DEBUG <enter>
a<enter>
jmp FFFF:0 <enter>
<enter>
r cx<enter>
5 <enter>
nboot.com<enter>
w<enter>
q<enter>

That will do a cold re boot. To do a warm boot, you need to change the word
at 0:472H to 1234H before doing the jmp to ffff:0

Cheers!
Steve

-- 
----------------------------------------------------------------------------
steve.resnick@f105.n143.z1.FIDONET.ORG - or - apple!camphq!105!steve.resnick
Flames, grammar errors, spelling errrors >/dev/nul
----------------------------------------------------------------------------

rcollins@altos86.Altos.COM (Robert Collins) (10/04/90)

WARMBOOT:
xor ax,ax
mov ds,ax
mov ds:[472],1234h
jmp f000:fff0

COLDBOOT:
xor ax,ax
mov ds,ax
mov ds:[472],0
jmp f000:fff0

-- 
"Worship the Lord your God, and serve him only."  Mat. 4:10
Robert Collins                 UUCP:  ...!sun!altos86!rcollins
HOME:  (408) 225-8002
WORK:  (408) 432-6200 x4356