mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-19 02:10:39 +00:00
Epyx Reboot Fixes (#122)
This commit is contained in:
parent
389d79a369
commit
01a71c43bc
22
src/prelaunch/ss.baseball.a
Executable file
22
src/prelaunch/ss.baseball.a
Executable 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
22
src/prelaunch/ss.basketball.a
Executable 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
33
src/prelaunch/summer.games.ii.a
Executable 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 ", *
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user