home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!das.wang.com!wang!dbushong
- From: dbushong@wang.com (Dave Bushong)
- Subject: Re: Reboot in C?
- Organization: Wang Labs, Lowell MA, USA
- Date: Mon, 27 Jul 92 14:45:44 GMT
- Message-ID: <bs1ycf.5uf@wang.com>
- References: <1992Jul20.230630.18199@msuinfo.cl.msu.edu> <1992Jul24.001740.27138@zooid.guild.org>
- Lines: 31
-
- Ross Ridge <ross@zooid.guild.org> writes:
-
- >evansj@crs.cl.msu.edu (Jeffrey Evans) writes:
- >>I am attempting to reboot MS-DOS machines in MSC 5.1, but am having
- >>absolutely no luck with int 19. Is there a better way to acomplish
- >>this? All replies most welcome!
-
- >void
- >warm_reboot(void) {
- *(unsigned short far *)0x00400072L = 0x1234; // add this line
- > ((void (far *)(void))0xFFFF0000L)();
- >}
-
- >void
- >cold_reboot(void) {
- > *(unsigned short far *)0x00400072L = 0;
- > ((void (far *)(void))0xFFFF0000L)();
- >}
-
- > Ross Ridge
-
- Note the "1234" in order to assure a warm boot; otherwise you'll
- probably get a cold one for either of the original methods.
-
- Dave
- --
- ==========================================================================
- Dave Bushong, KZ1O@K1UGM.MA + No .sig, no tattoo,
- Wang Laboratories, Inc. + no bald spot, no nothin!!
- Internet: dbushong@wang.com +-------------------------------------
- Project leader, OCR Products + (reserved for future expansion)
-