mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
some reset fixes (#478)
* fix Prince of Persia reboot * Additional reset fixes * fix Victory Road reset during title screen
This commit is contained in:
parent
a9089f8c2f
commit
2c1c3c431b
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user