我正在尝试用 6502 处理器中先前操作的结果填充 100 个内存位置。
如何增加存储在寄存器中的内存位置并将结果存储在其中?
*=0300
dato1 = $0A
dato2 = $0B
res = $0C
LDA #4
STA dato1
LDA #5
STA dato2
ADC dato1
STA res
LDX #100
LDY #res
LOOP
INY
; i have to fill 0C position and next 100 positions in this loop
DEX
BNE LOOP