In this code:
ldx #0 lda #0 Clear sta 0,x inx bne Clear
Is this what is happening?:
1) load x with the number 0 (so now x=0)
2) load the accumulator with the number 0 (so now accumulator = 0)
3) assign this line in the program as the location known as "Clear"
4) store whats in the accumulator (0) into location x+0
5) increase x by 1 (so now x=1)
6) branch to the location known as "Clear" if the result of the previous
line is not 0 (therefore creating a loop)
First question: Is that a correct analysis of this code? (If i'm wrong please
correct me.)
Second question: How does this clear RAM and all TIA registers?
Thanks!













