2019-12-24 17:37:13 +00:00
|
|
|
;license:MIT
|
2022-04-25 22:09:50 +00:00
|
|
|
;(c) 2019 by Frank M., 2022 by qkumba
|
2019-12-24 17:37:13 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/PRELAUNCH.INDEXED/THUNDER.BOMBS",plain
|
2019-12-24 17:37:13 +00:00
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
|
|
|
lda #$60
|
|
|
|
sta $887F
|
2021-12-30 01:26:00 +00:00
|
|
|
lda #<fakewait
|
|
|
|
sta $8823+1
|
2022-05-03 20:17:43 +00:00
|
|
|
sta $882A+2
|
2021-12-30 01:26:00 +00:00
|
|
|
lda #>fakewait
|
|
|
|
sta $8823+2
|
|
|
|
sta $882B+2 ; fix timing of title screen on //gs
|
|
|
|
jsr $87F9 ; load, show title
|
2019-12-24 17:37:13 +00:00
|
|
|
|
|
|
|
+ENABLE_ACCEL
|
|
|
|
lda #$60
|
|
|
|
sta $7818
|
|
|
|
jsr $7800 ; unpack/setup
|
|
|
|
|
|
|
|
lda #0
|
2021-12-30 01:26:00 +00:00
|
|
|
sta $3F2 ; reset vector
|
|
|
|
|
2021-05-13 21:52:38 +00:00
|
|
|
+READ_RAM2_NO_WRITE
|
|
|
|
lda MockingboardStuff
|
2022-04-25 22:09:50 +00:00
|
|
|
beq ++
|
2021-05-13 21:52:38 +00:00
|
|
|
tax
|
2022-04-25 22:09:50 +00:00
|
|
|
and #7
|
2021-05-13 21:52:38 +00:00
|
|
|
ora #$C0
|
|
|
|
sta $341
|
|
|
|
txa
|
2022-04-25 22:09:50 +00:00
|
|
|
ldy #6 ; sound/speech
|
2021-05-13 21:52:38 +00:00
|
|
|
asl
|
2022-04-25 22:09:50 +00:00
|
|
|
bcs +
|
|
|
|
ldy #4 ; sound ii
|
|
|
|
asl
|
|
|
|
bmi +
|
|
|
|
dey ; sound i
|
2021-05-13 21:52:38 +00:00
|
|
|
+
|
2022-04-25 22:09:50 +00:00
|
|
|
sty $340
|
2021-05-13 21:52:38 +00:00
|
|
|
jsr $7CB4
|
|
|
|
++
|
2022-05-03 20:17:43 +00:00
|
|
|
lda MachineStatus
|
|
|
|
and #CHEATS_ENABLED
|
|
|
|
beq +
|
|
|
|
lda #$AD
|
|
|
|
sta $E39 ; don't decrease lives
|
|
|
|
+
|
|
|
|
jsr DisableAccelerator
|
|
|
|
+READ_ROM_NO_WRITE
|
2019-12-24 17:37:13 +00:00
|
|
|
|
|
|
|
lda $323
|
|
|
|
jmp $781B
|
|
|
|
|
2021-12-30 01:26:00 +00:00
|
|
|
fakewait sec
|
|
|
|
wait1 pha
|
|
|
|
wait2 sbc #$01
|
|
|
|
bne wait2
|
|
|
|
pla
|
|
|
|
sbc #$01
|
|
|
|
bne wait1
|
|
|
|
rts
|
|
|
|
|
2019-12-24 17:37:13 +00:00
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|