4cade/src/prelaunch/summer.games.ii.a
2020-03-05 07:37:14 -05:00

34 lines
795 B
Plaintext
Executable File

;license:MIT
;(c) 2020 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/SUMMER.GAMES.II",plain
*=$106
!source "src/prelaunch/common.a"
;+ENABLE_ACCEL
lda #$60
sta $A13
jsr $800 ; decompress
lda #$60
sta $D048 ; set hook
lda #$FF ; restore A to original
jsr $D003 ; let 'em set up vectors which we'll nuke
ldx #$FF
txs ; we skipped the stack nuke so let's do that now
+LC_REBOOT
lda #0
sta $D9FC
lda #1
sta $D9FD ; copied back into LC reset vector each event
;+DISABLE_ACCEL ; LC is overwritten by this point
jmp $6000
!if * > $1C0 {
!error "code is too large, ends at ", *
}