From f822c52838af6884792f3a1f16aad29f5174a913 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 16 Apr 2021 12:34:12 -0400 Subject: Use full 8K banks for cartridge build --- bank3.s | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bank3.s') diff --git a/bank3.s b/bank3.s index 2f7733c..9a1fce1 100644 --- a/bank3.s +++ b/bank3.s @@ -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 #