some reset fixes (#478)

* fix Prince of Persia reboot

* Additional reset fixes

* fix Victory Road reset during title screen
This commit is contained in:
frankmilliron 2022-05-29 22:13:41 -07:00 committed by GitHub
parent a9089f8c2f
commit 2c1c3c431b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2022 by qkumba
;(c) 2022 by qkumba, Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/PP",plain
@ -7,6 +7,8 @@
!source "src/prelaunch/common.a"
inc $3F4 ; force reboot on reset
+READ_RAM2_NO_WRITE
jsr EnableAccelerator
lda MachineStatus

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2022 by qkumba
;(c) 2022 by qkumba, Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/VICTORY.ROAD",plain
@ -20,6 +20,7 @@ callback
++
+ENABLE_ACCEL
inc $3F4 ; force reboot on reset during title screen
lda #$60
sta $11A7
jsr $1000 ; decompress

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2021 by qkumba
;(c) 2021-22 by qkumba, Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/VV",plain
@ -8,6 +8,8 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
+NEW_RESET_VECTOR $180
lda #<callback
sta $A52
lda #>callback
@ -15,9 +17,9 @@
jmp $800 ; load "DOS"
callback
ldx #$00
ldx #$80
stx $9E52
inx
ldx #$01
stx $9E53
+DISABLE_ACCEL

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2022 by qkumba
;(c) 2022 by qkumba, Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/ZP",plain
@ -7,6 +7,8 @@
!source "src/prelaunch/common.a"
+NEW_RESET_VECTOR $180
lda #$60
sta $3076
sta $313B