4cade/src/prelaunch/its.the.pits.a
2022-05-11 20:48:46 -07:00

41 lines
974 B
Plaintext

;license:MIT
;(c) 2021-2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/IP",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $813
jsr $800 ; decompress
lda #$2C
sta $1806
sta $180B
sta $1810
sta $1833
sta $1838
sta $183D ; reset vector fix
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $1CD1 ; patch - don't decrease lives
sta $2409 ; patch - don't increase lives
sta $2442 ; patch - don't increase lives
sta $2472 ; patch - don't increase lives
sta $249E ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $1800
!if * > $1C0 {
!error "code is too large, ends at ", *
}