🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #41290

System boot

#41290
From: Jeff Seideman
Date: Thu, 11 Jan 1990 21:52
20 lines
1227 bytes
For all you who requested the magic code for warm/cold booting your PC
from software, here it be:

int (far *reboot)() = (int(far *)())0xFFFF0000;
void main()
{
	unsigned far *warm;

	warm = 0x472;
	*warm = 0x1234;
	(*reboot)();
}
Note that if you set *warm to any other value it should do a cold boot.
 __________________________________________________________________________
|  ...these clouds stick to the sky      |                                 |
|  like a floating question why.         |                                 |
|  and they linger there to die.         |       Jeff Seideman             |
|  They don't know where they're going   |                                 |
|  and my friend neither do I...         |                                 |
 --------------------------------------------------------------------------
Technical Details
Message-ID: <955@excelan.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!excelan!jeffs

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!excelan!jeffs
From: jeffs@ka.excelan.com (Jeff Seideman)
Newsgroups: comp.sys.ibm.pc
Subject: System boot
Keywords: warm boot cold boot
Message-ID: <955@excelan.COM>
Date: 11 Jan 90 21:52:13 GMT
Sender: news@excelan.COM
Organization: Novell, San Jose CA.
Lines: 20