aboutsummaryrefslogtreecommitdiff
path: root/bank7.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-16 02:08:05 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-16 02:08:05 -0500
commit3a22a9af57b8b564301cd86e8e933eb1a22981ce (patch)
tree44eb7abac4ea5f3add959e30f86ed7a9441510e9 /bank7.s
parent3988e55f135d6328d16ce95fe363acf2d2e07f56 (diff)
downloadtaipan-3a22a9af57b8b564301cd86e8e933eb1a22981ce.tar.gz
keep RODATA in ROM for cart build
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