ldx #0
 lda #0
loop:
 adc 1
 sta $200,x 
 sta $300,x
 sta $400,x
 sta $500,x
 inx
 cpx #$ff
 bne loop
 
ldy #0
 
loopx:

iny
tya

ldx #0

loop:
 adc 1
 sta $200,x 
 sta $300,x
 sta $400,x
 sta $500,x
 inx
 cpx #$ff
 bne loop

 jmp loopx