From e23896d9f9b997eb72549c92d40f886cd4b5cb33 Mon Sep 17 00:00:00 2001 From: hugova Date: Wed, 16 Jul 2025 20:20:28 +0200 Subject: [PATCH] reduse a ASL from working on zeropage to working on a accumilator in memset_alt --- wip-hugo/routines/memory/memset_alt.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wip-hugo/routines/memory/memset_alt.s b/wip-hugo/routines/memory/memset_alt.s index 40b7b50..b2c50b9 100644 --- a/wip-hugo/routines/memory/memset_alt.s +++ b/wip-hugo/routines/memory/memset_alt.s @@ -36,9 +36,9 @@ small_set: STX length + 1 ;; 3 bytes = STA DEY NOP = seting 1 byte of memory. ;; So we need to calculate: length*3 - Mult_16 length, length + 1 - ; A= length_copy - ADC length + Mult_16 A, length + 1 + ; A= length + ADC length_copy TAY LDA length + 1 ADC #$00