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

View File

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

View File

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

View File

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