aboutsummaryrefslogtreecommitdiff
path: root/bank7.s
diff options
context:
space:
mode:
Diffstat (limited to 'bank7.s')
-rw-r--r--bank7.s10
1 files changed, 6 insertions, 4 deletions
diff --git a/bank7.s b/bank7.s
index 1ddb55a..052a474 100644
--- a/bank7.s
+++ b/bank7.s
@@ -103,13 +103,15 @@ cartstart:
jsr copy_31_pages
lda #2 ; bank 2...
sta CCNTL ; ...select it
- jsr copy_31_pages
+ ldx #(>BANK2SIZE)+1 ; BANK2SIZE defined on the command line
+ jsr copy_x_pages
+
+ ; bank 3 contains RODATA and some code, that runs from ROM rather than
+ ; being copied to RAM.
lda #3 ; bank 3...
sta CCNTL ; ...select it
- ldx #(>BANK3SIZE)+1 ; BANK3SIZE defined on the command line
- jsr copy_x_pages
- .out .sprintf("BANK3SIZE %x (%x pages)", BANK3SIZE, (>BANK3SIZE)+1)
+ .out .sprintf("BANK2SIZE $%x (%d pages)", BANK2SIZE, (>BANK2SIZE)+1)
; leave bank 3 enabled, as it has our custom font in it