home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / a / assembly / Break
Encoding:
Text File  |  1991-09-27  |  1.5 KB  |  41 lines

  1. R0              RN      0
  2. R1              RN      1
  3. R2              RN      2
  4. R3              RN      3
  5. R4              RN      4
  6. R5              RN      5
  7. R6              RN      6
  8. R7              RN      7
  9. R8              RN      8
  10. R9              RN      9
  11. R10             RN      10
  12. R11             RN      11
  13. R12             RN      12
  14. SP              RN      13
  15. LK              RN      14
  16. PC              RN      15
  17.  
  18. OS_EnterOS      EQU     &000016
  19. XOS_Byte        EQU     &020006
  20. XOS_ServiceCall EQU     &020030
  21.  
  22.  
  23.                 SWI     OS_EnterOS
  24.                 MOV     R0,#&C8                        ;Set break type to memory clear
  25.                 MOV     R1,#3                          ;ie power-on type reset
  26.                 MOV     R2,#0
  27.                 SWI     XOS_Byte
  28.                 MOV     R1,#&45                        ;Issue Pre-Reset service call
  29.                 SWI     XOS_ServiceCall
  30.                 MOV     R0,#&03800000                  ;Copy OS Reset Entry vector
  31.                 LDR     R1,[R0,#0]                     ;to CPU reset vector
  32.                 MOV     R0,#0
  33.                 STR     R1,[R0]
  34.                 TEQP    PC,#&FC000003                  ;Disable Interrupts
  35.                 MOV     PC,#0                          ;Enter OS Initialisation code
  36.  
  37.                 =       "Hard reset utility for desktop",13
  38.                 =       "!Break version 1.00 (26-Mar-91)",13
  39.                 =       "© 1991 Adam Goodfellow Released to public domain",0
  40.  END
  41.