2020-03-28 23:25:32 +00:00
|
|
|
;license:MIT
|
|
|
|
;(c) 2020 by qkumba
|
|
|
|
|
|
|
|
!cpu 6502
|
|
|
|
!to "build/PRELAUNCH/A.E",plain
|
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
|
|
|
+ENABLE_ACCEL
|
|
|
|
lda #$60
|
2020-03-30 21:24:21 +00:00
|
|
|
sta $4CFC
|
2020-03-28 23:25:32 +00:00
|
|
|
sta $4D23
|
|
|
|
bne +
|
2020-03-30 21:24:21 +00:00
|
|
|
!fill $12
|
|
|
|
+ jsr $BD5 ; decompress title
|
|
|
|
+DISABLE_ACCEL
|
|
|
|
jsr $800
|
|
|
|
+ENABLE_ACCEL
|
|
|
|
jsr $535 ; decompress game
|
|
|
|
+READ_RAM2_NO_WRITE
|
|
|
|
lda MachineStatus
|
2020-03-28 23:25:32 +00:00
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
|
|
|
lda #$ad
|
|
|
|
sta $773 ; patch - don't decrease lives
|
|
|
|
+
|
2020-03-30 21:24:21 +00:00
|
|
|
jsr DisableAccelerator
|
|
|
|
+READ_ROM_NO_WRITE
|
2020-03-28 23:25:32 +00:00
|
|
|
jmp $68E
|
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|