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