home *** CD-ROM | disk | FTP | other *** search
- R0 RN 0
- R1 RN 1
- R2 RN 2
- R3 RN 3
- R4 RN 4
- R5 RN 5
- R6 RN 6
- R7 RN 7
- R8 RN 8
- R9 RN 9
- R10 RN 10
- R11 RN 11
- R12 RN 12
- SP RN 13
- LK RN 14
- PC RN 15
-
- OS_EnterOS EQU &000016
- XOS_Byte EQU &020006
- XOS_ServiceCall EQU &020030
-
-
- SWI OS_EnterOS
- MOV R0,#&C8 ;Set break type to memory clear
- MOV R1,#3 ;ie power-on type reset
- MOV R2,#0
- SWI XOS_Byte
- MOV R1,#&45 ;Issue Pre-Reset service call
- SWI XOS_ServiceCall
- MOV R0,#&03800000 ;Copy OS Reset Entry vector
- LDR R1,[R0,#0] ;to CPU reset vector
- MOV R0,#0
- STR R1,[R0]
- TEQP PC,#&FC000003 ;Disable Interrupts
- MOV PC,#0 ;Enter OS Initialisation code
-
- = "Hard reset utility for desktop",13
- = "!Break version 1.00 (26-Mar-91)",13
- = "© 1991 Adam Goodfellow Released to public domain",0
- END
-