4cade/src/ui.reboot.a

25 lines
511 B
Plaintext
Raw Normal View History

2020-07-29 01:06:36 +00:00
;license:MIT
2020-07-29 16:15:22 +00:00
;(c) 2020 by qkumba/4am
2020-07-29 01:06:36 +00:00
;
; reboot system
;
; Public functions
2020-07-29 16:15:22 +00:00
; - OnQuit
2020-07-29 01:06:36 +00:00
;
;------------------------------------------------------------------------------
2020-07-29 16:15:22 +00:00
; OnQuit
2020-07-29 01:06:36 +00:00
; reboot system
;
; in: none
; out: nothing
;------------------------------------------------------------------------------
2020-07-29 16:15:22 +00:00
OnQuit
jsr SwitchToBank2
jsr EnableAcceleratorAndSwitchToBank1
2020-07-30 04:37:32 +00:00
PatchQuit
2020-07-29 01:06:36 +00:00
inc $101 ; bank in ROM
2020-07-29 16:15:22 +00:00
+LDADDR ROM_REBOOT
+ST16 $104
2020-07-29 01:06:36 +00:00
jmp $100