IIc+ compatibility: after writing to LC, bank in again to flush values

This commit is contained in:
Peter Ferrie 2020-05-27 19:13:31 -07:00
parent d6fe1ce5db
commit 8fe02f92fc
5 changed files with 7 additions and 6 deletions

View File

@ -24,10 +24,10 @@
sta $D45D
sta $D5A3
+
bit $C083
+LC_REBOOT
+READ_RAM2_WRITE_RAM2
jsr DisableAccelerator
bit $C08B
+READ_RAM1_WRITE_RAM1
jmp $D400
callback1

View File

@ -16,6 +16,7 @@
callback
+LC_REBOOT
+READ_RAM2_WRITE_RAM2
jsr DisableAccelerator
jmp $21CD

View File

@ -22,10 +22,9 @@
lda #$2C
sta $AF1D ; patch - don't decrease hit-points
+
bit $C083
+LC_REBOOT
+READ_RAM2_WRITE_RAM2
jsr DisableAccelerator
bit $C08B
+READ_RAM1_WRITE_RAM1
jmp $1953
!if * > $1C0 {

View File

@ -2,7 +2,7 @@
;(c) 2019 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/THUNDERBOMBS",plain
!to "build/PRELAUNCH/THUNDER.BOMBS",plain
*=$106
!source "src/prelaunch/common.a"

View File

@ -16,6 +16,7 @@
callback
+LC_REBOOT
+READ_RAM2_WRITE_RAM2
lda MachineStatus
and #CHEATS_ENABLED
beq +