mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-19 02:10:39 +00:00
34 lines
704 B
Plaintext
34 lines
704 B
Plaintext
|
;license:MIT
|
||
|
;(c) 2022 by qkumba
|
||
|
|
||
|
!cpu 6502
|
||
|
!to "build/PRELAUNCH.INDEXED/LA",plain
|
||
|
*=$106
|
||
|
|
||
|
!source "src/prelaunch/common.a"
|
||
|
|
||
|
+ENABLE_ACCEL
|
||
|
lda #$60
|
||
|
sta $87C
|
||
|
sta $896
|
||
|
jsr $800 ; decompress
|
||
|
+DISABLE_ACCEL
|
||
|
jsr $300
|
||
|
+ENABLE_ACCEL
|
||
|
jsr $87F
|
||
|
+READ_RAM2_NO_WRITE
|
||
|
lda MachineStatus
|
||
|
and #CHEATS_ENABLED
|
||
|
beq +
|
||
|
dec $8C77 ; patch - don't decrease lives
|
||
|
dec $8DF7 ; patch - don't increase lives
|
||
|
+
|
||
|
jsr DisableAccelerator
|
||
|
+READ_ROM_NO_WRITE
|
||
|
|
||
|
jmp $8000
|
||
|
|
||
|
!if * > $1C0 {
|
||
|
!error "code is too large, ends at ", *
|
||
|
}
|