Compare commits

...

8 Commits

Author SHA1 Message Date
Peter Ferrie
bf47cb8c5f safer fix for Test Drive 2024-05-17 21:09:59 -07:00
Peter Ferrie
74b0fdf84d avoid floppy softswitch in Test Drive 2024-05-17 21:07:41 -07:00
Peter Ferrie
cc1a9ead97 fix Superstar Ice Hockey reset vector 2024-05-17 21:03:43 -07:00
Peter Ferrie
19f1519b11 restore LC reset and IRQ vectors 2024-05-17 20:46:08 -07:00
Peter Ferrie
7752c2acb1 avoid floppy softswitch in Championship Football 2024-05-17 20:42:27 -07:00
Peter Ferrie
d4ac9a7f64 fix Championship Boxing reset vector 2024-05-17 20:39:19 -07:00
Peter Ferrie
010c2b03e9 avoid floppy softswitch in Championship Basketball 2024-05-17 19:28:30 -07:00
Peter Ferrie
5ecec75f59 avoid floppy softswitch in F-15 Strike Eagle 2024-05-17 19:07:25 -07:00
7 changed files with 59 additions and 1 deletions

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2018-2020 by 4am
;(c) 2018-2024 by 4am
;
!cpu 6502
!to "build/LAUNCHER.SYSTEM",plain
@ -63,12 +63,20 @@ Reenter
stx $3F2 ; page 3 reset vector to ($100)
sei
stx $3FE ; page 3 IRQ vector to ($100)
lda #<Ignore
sta $FFFE
inx
stx $3FF
lda #>Ignore
sta $FFFF
cli
stx $3F3
ldx #$A4
stx $3F4
lda #<Reenter
sta $FFFC
lda #>Reenter
sta $FFFD
RestoreStackNextTime
bne SearchMode ; (SMC) not an unconditional branch because code
; might change the branch target to the next opcode

View File

@ -23,6 +23,7 @@ callback
stx $9E52
inx
stx $9E53
+LC_REBOOT
+DISABLE_ACCEL
jmp $9D84

View File

@ -0,0 +1,49 @@
;license:MIT
;(c) 2024 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SUPER.ICEHOCKEY",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $A02
jsr $800 ; load "DOS"
lda #<callback
sta $B748
lda #>callback
sta $B749
jmp $B700
callback
ldx #0
stx $9E52
inx
stx $9E53
lda #<callback2
sta $B7B8
lda #>callback2
sta $B7B9
+DISABLE_ACCEL
jmp $9D84
callback2
jsr $BD00
lda $B7EC
eor #$14
bne +
lda $B7ED
eor #$0E
bne +
sta $9688
lsr $968D ; reset vector
+LC_REBOOT
clc
+ rts
!if * > $1C0 {
!error "code is too large, ends at ", *
}