In VTL02 i needed to "move" sections of code in the editor, but I knew that the offset would be less than 256 bytes, so I put the offset in Y and zero in X to allow me to use the same ZP pointer for source and destination:
Code:
...
lda (ptr),y
sta (ptr,x)
...
I had to leave X and Y alone during the move and update ptr with each byte, so this is not as fast as the two pointer version, but the code is smaller, and that was my primary goal.
I could have coded sta (ptr) and used X for something else but I wanted to allow the 6502 and 6510 to play as well.
_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some
VTL02C on it and see how it grows on you!
Mike B.
(about me) (learning how to github)