From be048d3184d451c76cf56dd706be8d087c477d77 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 14 Apr 2026 06:45:36 -0400 Subject: The Great Migration: move all the screen memory to the $4000-$7FFF bank window, move code to $8000, move data/rodata/bss to $2000, move rx_buf and tx_buf, etc etc. --- font_dl.asm | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'font_dl.asm') diff --git a/font_dl.asm b/font_dl.asm index a48699a..f89e682 100644 --- a/font_dl.asm +++ b/font_dl.asm @@ -1,8 +1,17 @@ - *= $8000 + *= $3400 .incbin "font.dat" -; screen RAM starts right after the font. +; shoehorn the transmit & receive buffers here + *= $3800 +rx_buf ; 512 bytes + *= $3a00 +tx_buf ; 512 bytes + *= $3c00 +scr_vis_buf ; not used yet + + *= $4000 +; screen RAM starts at the XE bankswitching window! ; 7 double-height screens, 50 lines each. scr0_top *= * + 1000 @@ -10,10 +19,10 @@ scr1_top *= * + 1000 scr2_top *= * + 1000 -edbox_only_dlist = * +edbox_only_dlist ; can't cross a 4K boundary... - *= $9000 + *= $5000 scr3_top *= * + 1000 scr4_top @@ -22,13 +31,7 @@ scr5_top *= * + 1000 scr6_top -; shoehorn the transmit & receive buffers here - *= $a000 -rx_buf ; 512 bytes - *= $a200 -tx_buf ; 512 bytes - *= $a400 - + *= $6000 scr0_bot *= * + 1000 scr1_bot @@ -36,7 +39,7 @@ scr1_bot scr2_bot *= * + 1000 - *= $b000 + *= $7000 scr3_bot *= * + 1000 scr4_bot @@ -77,6 +80,7 @@ dl_status_lms .byte $06 ; one GR.1 line .byte $41 ; JVB .word dlist_bot +topbot_dlist_done *= edbox_only_dlist .byte $70, $70, $30 ; 2 8-line blanks, 1 4-line blank @@ -90,4 +94,4 @@ dl_status_lms .byte $06 ; GR.1 .byte $41 .word edbox_only_dlist - +edbox_dlist_done -- cgit v1.2.3