From ae4cbb07c76aa14d465cda10b112fc21096b2850 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Wed, 27 May 2020 20:20:24 -0700 Subject: [PATCH] fix Microwave on IIc+ --- src/prelaunch/microwave.a | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/prelaunch/microwave.a b/src/prelaunch/microwave.a index d2b11d215..f8ef15df9 100644 --- a/src/prelaunch/microwave.a +++ b/src/prelaunch/microwave.a @@ -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 ", * }