From 96d9bc444090e76b0722b86c5644add2fe4cb808 Mon Sep 17 00:00:00 2001 From: hugova Date: Sat, 29 Mar 2025 21:50:25 +0100 Subject: [PATCH] Improve performance of line_down from 837970 to 835768 (cpu cyceles of a test) --- wip-hugo/routines/line/line_down.s | 8 ++++++-- wip-hugo/source.s | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wip-hugo/routines/line/line_down.s b/wip-hugo/routines/line/line_down.s index 6774b7e..cf61f5f 100644 --- a/wip-hugo/routines/line/line_down.s +++ b/wip-hugo/routines/line/line_down.s @@ -77,7 +77,9 @@ increment_pixel_x: BCC increment_pixel_x_end; We need to move to the next chunk move_8px_left: ;; Next chunk is 8 addresses away. Look in pixel_draw for more detail. - Add_16 >btp_mem_pos, btp_mem_pos, C=1 LDY #$00 ;; Switch to chunk bellow - Add_16 >btp_mem_pos, btp_mem_pos,