From 272c5855ed2b210f0df91bac7b81526cfb97aff3 Mon Sep 17 00:00:00 2001 From: 4am Date: Mon, 26 Oct 2020 00:10:09 -0400 Subject: [PATCH] shave some bytes --- src/fx/fx.hgr.48boxes.common.a | 274 +++++++++++++-------------------- 1 file changed, 106 insertions(+), 168 deletions(-) diff --git a/src/fx/fx.hgr.48boxes.common.a b/src/fx/fx.hgr.48boxes.common.a index 04f4353c5..f9eb9de17 100644 --- a/src/fx/fx.hgr.48boxes.common.a +++ b/src/fx/fx.hgr.48boxes.common.a @@ -73,7 +73,6 @@ dst = $02 ; [word] used by drawing routines box = $04 ; [byte] counter in main loop any = $05 ; [byte] counter in main loop rowcount = $06 ; [byte] used by drawing routines -alwaysFF = $0F ; [byte] used to set V flag BoxStages = $10 ; [$30 bytes] current stage for each box hgrhi = $40 ; [$C0 bytes] HGR base addresses hgrlo = $300 ; [$C0 bytes] HGR base addresses @@ -119,29 +118,20 @@ k_rts = 0 k_inx_and_recalc = 1 k_recalc = 2 k_recalc_and_iny = 3 -k_recalc_high_only = 4 -k_clear_stage_01_init = 5 -k_copy_stage_01_init = 6 -k_stage0_precalc = 7 -k_stage0_maskcopy_and_inx = 8 -k_stage0_maskcopy = 9 -k_stage1_precalc = 10 -k_stage1_copy_and_inx = 11 -k_stage1_copy = 12 -k_stage_init = 13 -k_maskcopy_pre = 14 -k_maskcopy_post_and_iny = 15 -k_maskcopy_post = 16 -k_copy_and_iny = 17 -k_copy = 18 -k_dey2 = 19 -k_iny2 = 20 -k_middle_branches = 21 -k_outer_branches = 22 -k_edge_left_mask = 23 -k_edge_right_mask = 24 -k_left_mask = 25 -k_right_mask = 26 +k_stage_init = 4 +k_maskcopy_pre = 5 +k_maskcopy_post_and_iny = 6 +k_maskcopy_post = 7 +k_copy_and_iny = 8 +k_copy = 9 +k_dey2 = 10 +k_iny2 = 11 +k_middle_branches = 12 +k_outer_branches = 13 +k_edge_left_mask = 14 +k_edge_right_mask = 15 +k_left_mask = 16 +k_right_mask = 17 !source "src/fx/macros.a" @@ -187,61 +177,7 @@ k_right_mask = 26 bne - pla - ; copy codegen data to zero page - ; X=0 here -- lda PIECES_COPY_START, x - sta $00, x - inx - bne - - - ; generate drawing routines for copy01, then copy00 - lda # $100) { - !error "out of room on zero page" + !byte %11111111 } BoxInitialStages