fix Battle Cruiser reset

This commit is contained in:
Peter Ferrie 2024-01-18 09:02:31 -08:00
parent eb48e6534a
commit 541a0167dc
1 changed files with 17 additions and 17 deletions

View File

@ -1,5 +1,5 @@
;license:MIT ;license:MIT
;(c) 2020, 2022 by qkumba ;(c) 2020, 2022, 2023 by qkumba
!cpu 6502 !cpu 6502
!to "build/PRELAUNCH.INDEXED/BATTLE.CRUISER",plain !to "build/PRELAUNCH.INDEXED/BATTLE.CRUISER",plain
@ -12,31 +12,28 @@
sta $2027 sta $2027
jsr $2000 ; decompress jsr $2000 ; decompress
tax
+GET_MOCKINGBOARD_SPEECH_AND_MACHINE_STATUS +GET_MOCKINGBOARD_SPEECH_AND_MACHINE_STATUS
bvs + bvs +
ldy #0 stx $868
sty $868 stx $9486
sty $9486 ldx #$60
ldy #$60 stx $B000 ; no speech chip, pretend no MB
sty $B000 ; no speech chip, pretend no MB
+ and #CHEATS_ENABLED + and #CHEATS_ENABLED
beq + beq +
lda #$a5 lda #$a5
sta $A22 ; patch - don't decrease lives sta $A22 ; patch - don't decrease lives
+ +
lda #$4C iny
sta $8FFF - lda call1, y
sta $9010 sta $8FFF, y
lda #<callback1 lda call2, y
sta $9000 sta $9010, y
lda #>callback1 dey
sta $9001 bpl -
lda #<callback2
sta $9011
lda #>callback2
sta $9012
lda #$C5 lda #$C5
sta $902A sta $902A
+NEW_RESET_VECTOR $110
+DISABLE_ACCEL +DISABLE_ACCEL
jmp $845 jmp $845
@ -56,6 +53,9 @@ callback2
bcs - bcs -
jmp $902C jmp $902C
call1 jmp callback1
call2 jmp callback2
!if * > $1C0 { !if * > $1C0 {
!error "code is too large, ends at ", * !error "code is too large, ends at ", *
} }