diff options
author | B. Watson <yalhcru@gmail.com> | 2016-02-19 05:44:14 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-02-19 05:44:14 -0500 |
commit | 4658f043d20c7521be638fe6aac60d7b03bfd36b (patch) | |
tree | ee00a049183fbd69a5467076bf0d5d80952efd76 /bank7.s | |
parent | 15534e8f7da91de858ebe5ce01ee4759687653ad (diff) | |
download | taipan-4658f043d20c7521be638fe6aac60d7b03bfd36b.tar.gz |
add delete key to name_firm(); shrink code, 5921 bytes free
Diffstat (limited to 'bank7.s')
-rw-r--r-- | bank7.s | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |