Article View: comp.os.msdos.programmer
Article #511Re: Reboot in C?
From: Dave Bushong
Date: Mon, 27 Jul 1992 14:45
Date: Mon, 27 Jul 1992 14:45
31 lines
1426 bytes
1426 bytes
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)
Technical Details
Message-ID:
<bs1ycf.5uf@wang.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!das.wang.com!wang!dbushongReferences:
<1992Jul20.230630.18199@msuinfo.cl.msu.edu> <1992Jul24.001740.27138@zooid.guild.org>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!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