fix Microwave on IIc+

This commit is contained in:
Peter Ferrie 2020-05-27 20:20:24 -07:00
parent 8fe02f92fc
commit ae4cbb07c7

View File

@ -5,6 +5,25 @@
!to "build/PRELAUNCH/MICROWAVE",plain
*=$106
jmp ++
callback
bit $C080
lda MachineStatus
!source "src/constants.a" ; no code in these
and #CHEATS_ENABLED
beq +
lda #$ad
sta $8EB ; patch - don't increase lives
sta $C41 ; patch - don't decrease lives
+
jsr DisableAccelerator
bit $C082
lda #0
jmp $8974
++
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
@ -14,18 +33,6 @@
sta $40A4
jmp $4000 ; decompress
callback
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $8EB ; patch - don't increase lives
sta $C41 ; patch - don't decrease lives
+
+DISABLE_ACCEL
lda #0
jmp $8974
!if * > $1C0 {
!error "code is too large, ends at ", *
}