mirror of
https://github.com/a2-4am/4cade.git
synced 2024-09-13 14:56:27 +00:00
fix recent bank switching regression
This commit is contained in:
parent
622e65929b
commit
bbc2d71664
22
src/macros.a
22
src/macros.a
@ -209,35 +209,35 @@
|
||||
|
||||
; various language card configurations
|
||||
!macro READ_RAM1_NO_WRITE {
|
||||
sta $C088
|
||||
bit $C088
|
||||
}
|
||||
|
||||
!macro READ_RAM1_WRITE_RAM1 {
|
||||
sta $C08B
|
||||
sta $C08B
|
||||
bit $C08B
|
||||
bit $C08B
|
||||
}
|
||||
|
||||
!macro READ_RAM2_NO_WRITE {
|
||||
sta $C080
|
||||
bit $C080
|
||||
}
|
||||
|
||||
!macro READ_RAM2_WRITE_RAM2 {
|
||||
sta $C083
|
||||
sta $C083
|
||||
bit $C083
|
||||
bit $C083
|
||||
}
|
||||
|
||||
!macro READ_ROM_WRITE_RAM1 {
|
||||
sta $C089
|
||||
sta $C089
|
||||
bit $C089
|
||||
bit $C089
|
||||
}
|
||||
|
||||
!macro READ_ROM_WRITE_RAM2 {
|
||||
sta $C081
|
||||
sta $C081
|
||||
bit $C081
|
||||
bit $C081
|
||||
}
|
||||
|
||||
!macro READ_ROM_NO_WRITE {
|
||||
sta $C082
|
||||
bit $C082
|
||||
}
|
||||
|
||||
; requires setting zpCharMask in zero page to #$FF or #$DF before use
|
||||
|
@ -86,10 +86,11 @@ Credits
|
||||
ldx #0
|
||||
stx VTAB
|
||||
php ; save C, but Z=1 because of ldx #0
|
||||
jsr SwitchToBank2
|
||||
@drawLine
|
||||
lda $FF
|
||||
sta HTAB
|
||||
jsr DrawString
|
||||
jsr DrawStringInternal
|
||||
bmi @donePage
|
||||
clc
|
||||
adc PTR
|
||||
@ -100,6 +101,7 @@ Credits
|
||||
php
|
||||
beq @drawLine ; always branches
|
||||
@donePage
|
||||
jsr SwitchToBank1
|
||||
plp
|
||||
;end inline
|
||||
jsr ShowOtherPage ; show credits
|
||||
|
Loading…
Reference in New Issue
Block a user