From 842033a014aeda5ef5ae818b878ec4cbaba6e8e3 Mon Sep 17 00:00:00 2001 From: hugova Date: Tue, 25 Mar 2025 19:46:03 +0100 Subject: [PATCH] Add performance optimisiation for line_up_inv.s --- wip-hugo/routines/line/line_up.s | 12 --------- wip-hugo/routines/line/line_up_inv.s | 37 +++++++++++++++++++++------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/wip-hugo/routines/line/line_up.s b/wip-hugo/routines/line/line_up.s index 8b58abf..91384fe 100644 --- a/wip-hugo/routines/line/line_up.s +++ b/wip-hugo/routines/line/line_up.s @@ -12,15 +12,6 @@ .proc line_up .include "line.inc"; Defines memory positions, ex X_pos - ;LDA #$20 - ;STA X_pos - ;STA Y_pos - ;LDA #$10 - ;STA Y_end - ;LDA #$40 - ;STA X_end - - ;;We need to clear this memory LDA #$00 STA D, btp_mem_pos, D, D, btp_mem_pos), Y + STA (>btp_mem_pos), Y +decrement_y_pos: + DEY + CPY #$ff + BNE decrement_y_pos_end +move_8px_up: + LDY #$07 + Sub_16>btp_mem_pos, D, D, V, D, V, btp_mem_pos, D, dx_2,