mirror of
https://github.com/a2-4am/4cade.git
synced 2024-07-04 18:29:51 +00:00
fix Pig Pen reset during game play (#599)
* fix Pig Pen reset * update macro * overwrites $100 during gameplay
This commit is contained in:
parent
f98bdf34a5
commit
e799921e02
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2022 by qkumba
|
||||
;(c) 2022, 2024 by qkumba/Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "build/PRELAUNCH.INDEXED/PIG.PEN",plain
|
||||
@ -8,17 +8,17 @@
|
||||
!source "src/macros.a"
|
||||
|
||||
+ENABLE_ACCEL
|
||||
+NEW_RESET_VECTOR $BFF0
|
||||
lda #$4C
|
||||
sta $933D
|
||||
jsr $6500 ; decompress
|
||||
lda #$60
|
||||
sta $936D
|
||||
+DISABLE_ACCEL
|
||||
jsr $9340
|
||||
+READ_RAM2_NO_WRITE
|
||||
jsr EnableAccelerator
|
||||
jsr $9340 ; show title screen
|
||||
+ENABLE_ACCEL
|
||||
jsr $9396 ; decompress more
|
||||
lda MachineStatus
|
||||
+GET_MACHINE_STATUS
|
||||
and #CHEATS_ENABLED
|
||||
beq +
|
||||
lda #$ad
|
||||
@ -26,9 +26,7 @@
|
||||
lda #0
|
||||
sta $7336 ; patch - don't update draw position
|
||||
+
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jmp $6000
|
||||
|
||||
!if * > $1C0 {
|
||||
|
Loading…
Reference in New Issue
Block a user