reduse a ASL from working on zeropage to working on a accumilator in memset_alt

This commit is contained in:
hugova 2025-07-16 20:20:28 +02:00
parent 49a330d24c
commit e23896d9f9

View file

@ -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