diff options
author | B. Watson <yalhcru@gmail.com> | 2021-04-16 12:34:12 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-04-16 12:34:12 -0400 |
commit | f822c52838af6884792f3a1f16aad29f5174a913 (patch) | |
tree | 98beb304fe1787423fdb7a7efdd7cc0edda69e1c /bank3.s | |
parent | d3d67168c37bf0d95477c8eb58b6dc24f7e815ad (diff) | |
download | taipan-f822c52838af6884792f3a1f16aad29f5174a913.tar.gz |
Use full 8K banks for cartridge build
Diffstat (limited to 'bank3.s')
-rw-r--r-- | bank3.s | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -38,9 +38,9 @@ mem_msg: scrcode "Need at least 32K" mem_msg_len = * - mem_msg - 1 -; copy_31_pages: -; copy 7936 bytes from $8000-$9dff to (destptr). -; on exit, destptr points to the next 7936 byte chunk. +; copy_32_pages: +; copy 8192 bytes from $8000-$9fff to (destptr). +; on exit, destptr points to the next 8192 byte chunk. ; copy_x_pages: ; as above, but accepts number of pages to copy in X register. @@ -49,8 +49,8 @@ mem_msg_len = * - mem_msg - 1 ; as copy_x_pages, but the caller must set up srcptr as well ; as the X reg. -copy_31_pages: - ldx #$1f +copy_32_pages: + ldx #$20 copy_x_pages: lda #$0 sta srcptr @@ -113,11 +113,11 @@ mem_ok: ; 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 + jsr copy_32_pages lda #1 ; bank 1... sta CCNTL ; ...select it - jsr copy_31_pages + jsr copy_32_pages ; tail end of the code is stored in this bank. lda #<code_tail |