Epyx Reboot Fixes (#122)

This commit is contained in:
4am 2020-03-05 07:37:14 -05:00 committed by GitHub
parent 389d79a369
commit 01a71c43bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 0 deletions

22
src/prelaunch/ss.baseball.a Executable file
View File

@ -0,0 +1,22 @@
;license:MIT
;(c) 2020 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/SS.BASEBALL",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $9EB
jsr $800 ; decompress
inc $3F4 ; reboot
+DISABLE_ACCEL
jmp $B700 ; could probably hook further
!if * > $1C0 {
!error "code is too large, ends at ", *
}

22
src/prelaunch/ss.basketball.a Executable file
View File

@ -0,0 +1,22 @@
;license:MIT
;(c) 2020 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/SS.BASKETBALL",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $9EB
jsr $800 ; decompress
inc $3F4 ; reboot
+DISABLE_ACCEL
jmp $B700 ; could probably hook further
!if * > $1C0 {
!error "code is too large, ends at ", *
}

33
src/prelaunch/summer.games.ii.a Executable file
View File

@ -0,0 +1,33 @@
;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 ", *
}