home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / reboot.lzh / REBOOT.A < prev    next >
Text File  |  1994-07-01  |  478b  |  29 lines

  1. ---------reboot.a-----------------
  2. ---By: Ricky Beam-----------------
  3. ---E-Mail: cramer@catt.ncsu.edu---
  4. ----------------------------------
  5.  
  6.  use /dd/defs/oskdefs.d
  7.  
  8.  
  9.  psect reboot_a,(Prgrm<<8)!Objct,(ReEnt+SupStat<<8)!1,1,0,_reboot,0
  10.  
  11. _reboot:
  12.  
  13. *delay loop to let things "settle"
  14.  
  15.         move.l #$7fffffff,d0
  16. loop    nop
  17.         nop
  18.         nop
  19.         nop
  20.         Dbf d0,loop
  21.  
  22. *load the reset location and exec it!
  23.         movea.l 4,a0
  24.         jmp (a0)
  25.  
  26.  ends
  27.  
  28. -------------
  29.