From 4497026d9528d4d95084d6b55a0238f9597842bf Mon Sep 17 00:00:00 2001 From: hugova Date: Tue, 25 Mar 2025 19:20:23 +0100 Subject: [PATCH] Rewrite start condition of line_down so that it start on exaktly the right pixel --- wip-hugo/routines/line/line_down.s | 7 +++---- wip-hugo/routines/line/line_test.s | 4 ++-- wip-hugo/routines/memory/pixel_draw.s | 22 +++++++++++++--------- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/wip-hugo/routines/line/line_down.s b/wip-hugo/routines/line/line_down.s index 3280e2d..40d8417 100644 --- a/wip-hugo/routines/line/line_down.s +++ b/wip-hugo/routines/line/line_down.s @@ -51,7 +51,7 @@ Sub_16 >D, C=1 - ;; +320-8 bytes LDY #$00 - Add_16 >btp_mem_pos, btp_mem_pos, D, dy_2, btp_mem_pos, btp_mem_pos - STA >btp_mem_pos - LDA #$00 - ADC btp_mem_pos + ;STA >btp_mem_pos + ;LDA #$00 + ;ADC btp_mem_pos, Bitmap, ! ;;Let draw some stuff - LDX #$00 + ;LDY #$00 LDA byte_to_paint ;; note that both bytes are used! - ORA (>btp_mem_pos, X) - STA (>btp_mem_pos, X) + ORA (>btp_mem_pos), Y + STA (>btp_mem_pos), Y RTS .endproc