1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 15:29:46 +00:00
cc65/libsrc/apple2/reboot.s
2014-01-26 18:10:01 +01:00

22 lines
387 B
ArmAsm

;
; Oliver Schmidt, 14.09.2009
;
; void rebootafterexit (void);
;
.constructor initreboot, 11
.export _rebootafterexit
.import done, return
_rebootafterexit := return
.segment "INIT"
initreboot:
; Quit to PWRUP
lda #<$FAA6
ldx #>$FAA6
sta done+1
stx done+2
rts