home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8113 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!das.wang.com!wang!dbushong
  3. From: dbushong@wang.com (Dave Bushong)
  4. Subject: Re: Reboot in C?
  5. Organization: Wang Labs, Lowell MA, USA
  6. Date: Mon, 27 Jul 92 14:45:44 GMT
  7. Message-ID: <bs1ycf.5uf@wang.com>
  8. References: <1992Jul20.230630.18199@msuinfo.cl.msu.edu> <1992Jul24.001740.27138@zooid.guild.org>
  9. Lines: 31
  10.  
  11. Ross Ridge <ross@zooid.guild.org> writes:
  12.  
  13. >evansj@crs.cl.msu.edu (Jeffrey Evans) writes:
  14. >>I am attempting to reboot MS-DOS machines in MSC 5.1, but am having 
  15. >>absolutely no luck with int 19.  Is there a better way to acomplish 
  16. >>this?  All replies most welcome!
  17.  
  18. >void
  19. >warm_reboot(void) {
  20.     *(unsigned short far *)0x00400072L = 0x1234;    // add this line
  21. >    ((void (far *)(void))0xFFFF0000L)();
  22. >}
  23.  
  24. >void
  25. >cold_reboot(void) {
  26. >    *(unsigned short far *)0x00400072L = 0;
  27. >    ((void (far *)(void))0xFFFF0000L)();
  28. >}
  29.  
  30. >                            Ross Ridge
  31.  
  32. Note the "1234" in order to assure a warm boot; otherwise you'll
  33. probably get a cold one for either of the original methods.
  34.  
  35. Dave
  36. -- 
  37. ==========================================================================
  38. Dave Bushong, KZ1O@K1UGM.MA         +    No .sig, no tattoo, 
  39. Wang Laboratories, Inc.             +        no bald spot, no nothin!!
  40. Internet: dbushong@wang.com         +-------------------------------------
  41. Project leader, OCR Products        + (reserved for future expansion)
  42.