aboutsummaryrefslogtreecommitdiff
path: root/bank7.s
diff options
context:
space:
mode:
Diffstat (limited to 'bank7.s')
-rw-r--r--bank7.s13
1 files changed, 9 insertions, 4 deletions
diff --git a/bank7.s b/bank7.s
index 052a474..32e5a34 100644
--- a/bank7.s
+++ b/bank7.s
@@ -95,26 +95,31 @@ cartstart:
sta destptr
lda #>codedest
sta destptr+1
+
+ ; banks 0 and 1 are full of code (minus the top page), bank 2
+ ; is partially full. At some point, bank 2 might disappear, if
+ ; I can shrink the code down to fit in 0 and 1 only.
lda #0 ; bank 0...
sta CCNTL ; ...select it
jsr copy_31_pages
+
lda #1 ; bank 1...
sta CCNTL ; ...select it
jsr copy_31_pages
+
lda #2 ; bank 2...
sta CCNTL ; ...select it
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.
+ ; bank 3 contains our font, RODATA, and some code that runs from ROM
+ ; rather than being copied to RAM. It stays enabled the entire time
+ ; the game is running.
lda #3 ; bank 3...
sta CCNTL ; ...select it
.out .sprintf("BANK2SIZE $%x (%d pages)", BANK2SIZE, (>BANK2SIZE)+1)
- ; leave bank 3 enabled, as it has our custom font in it
-
lda #1
sta COLDST ; System Reset = reboot
jsr start ; 'start' is from newtitle.s