reduse a ASL from working on zeropage to working on a accumilator in memset_alt
This commit is contained in:
parent
49a330d24c
commit
e23896d9f9
1 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ small_set:
|
||||||
STX length + 1
|
STX length + 1
|
||||||
;; 3 bytes = STA DEY NOP = seting 1 byte of memory.
|
;; 3 bytes = STA DEY NOP = seting 1 byte of memory.
|
||||||
;; So we need to calculate: length*3
|
;; So we need to calculate: length*3
|
||||||
Mult_16 length, length + 1
|
Mult_16 A, length + 1
|
||||||
; A= length_copy
|
; A= length
|
||||||
ADC length
|
ADC length_copy
|
||||||
TAY
|
TAY
|
||||||
LDA length + 1
|
LDA length + 1
|
||||||
ADC #$00
|
ADC #$00
|
||||||
|
|
Loading…
Add table
Reference in a new issue