[comp.os.msdos.programmer] Rebooting by command

dvlsan@gimli.cs.umu.se (Stefan Andersson) (01/11/91)

This is an adaption of a method I saw on the net some time ago.
What we want to do is to write the magic number 1234h at adress
40:72, and then do a (far) jump to adress ffff:0.  A simple way
of doing this is by using DOS debug, a data file (RB.DAT) and a
batch file (RB.BAT):

	>>> RB.BAT
	------ cut here ------
	@ECHO OFF
	DEBUG < RB.DAT > NUL
	------ cut again ------
	>>> RB.DAT
	------ cut here ------
	E 40:72 34 12
	G=FFFF:0
	------ cut again ------

If you for some reason want to do the POST, you only need the
G=FFFF:0 line in RB.DAT, as this will surely result in wrong
magic number thereby fooling the routine into thinking that 
a cold boot is in progress.

The Gurus says that it ought to work.  So far it hasn't failed
me.  Share and enjoy.

-Stefan