mirror of
https://github.com/a2-4am/4cade.git
synced 2024-06-27 03:29:30 +00:00
62 lines
1.2 KiB
Plaintext
62 lines
1.2 KiB
Plaintext
;license:MIT
|
|
;(c) 2020 by qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/BATTLE.CRUISER",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
lda #$60
|
|
sta $2027
|
|
jsr $2000 ; decompress
|
|
|
|
+GET_MOCKINGBOARD_SPEECH_AND_MACHINE_STATUS
|
|
bcs +
|
|
ldy #0
|
|
sty $868
|
|
sty $9486
|
|
ldy #$60
|
|
sty $B000 ; no speech chip, pretend no MB
|
|
+ and #CHEATS_ENABLED
|
|
beq +
|
|
lda #$a5
|
|
sta $A22 ; patch - don't decrease lives
|
|
+
|
|
lda #$4C
|
|
sta $8FFF
|
|
sta $9010
|
|
lda #<callback1
|
|
sta $9000
|
|
lda #>callback1
|
|
sta $9001
|
|
lda #<callback2
|
|
sta $9011
|
|
lda #>callback2
|
|
sta $9012
|
|
lda #$C5
|
|
sta $902A
|
|
+DISABLE_ACCEL
|
|
jmp $845
|
|
|
|
callback1
|
|
sec
|
|
sbc #8
|
|
cmp #2
|
|
bcc +
|
|
- jmp $9014
|
|
+ ldy #$84
|
|
jmp $9003
|
|
|
|
callback2
|
|
sec
|
|
sbc #8
|
|
cmp #2
|
|
bcs -
|
|
jmp $902C
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|