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

  1. /*
  2.  *
  3.  Reset_card:
  4.  *       this sections resets the CPU card by software reset request.
  5.  *
  6.  *       reset remark H.W.Heyng 08/06/88 :
  7.  *       The following reset sequence is developed/tested by F.R.Schmitt/W.Ott
  8.  *       (and not fully understand but it works...).
  9.  */
  10. #asm
  11.           move.l    #$4,a3
  12.           move.l    (a3),a1
  13.           move.l    #$bc,a3
  14.           move.l    (a3),d2
  15.           lea       reset_vek(pc),a0
  16.           move.l    a0,(a3)
  17.           move.l    #0,d1
  18.           trap      #15
  19. reset_vek:
  20.           reset
  21.           clr.l     d3
  22. reset_loop:
  23.           add.l     #1,d3
  24.           nop
  25.           cmp.l     #10000,d3
  26.           bne.s     reset_loop
  27.           move.l    #$bc,a3
  28.           move.l    d2,(a3)
  29.           move.l    #$0,a3
  30.           move.l    (a3),a7
  31.           jmp       (a1)
  32. #endasm
  33.