|
|
|
|
|
by pguertin
5097 days ago
|
|
STORE_ACCUMULATOR may be easier to understand than STA, if you're seeing it for the first time, but it's not easier to use once you know what it means. Incidentally, I wrote a simple 6502 assembler back in the days, and I took the opportunity to invent my own notation, just for fun. I became quite adept at reading and writing it, and standard notation felt very verbose after a while. Here is, in standard notation, a program that copies 256 bytes from ORIGIN to DEST. LDY #$00
LOOP LDA ORIGIN,Y
STA DEST,Y
INY
BNE LOOP
RTS
Here is the same program in my notation (yes, all on one line. I used a space character to delimit instructions). Y<0 LOOP: A<(ORIGIN,Y) A>(DEST,Y) Y+ #LOOP ]
|
|