Parameter Passing: Difference between revisions
m
→Example of in/out (mutable)
Line 65:
This one's tricky because of the way pointers work on the 6502. Unlike the other architectures of its day there are no "address registers" per se, but we can make our own using the zero page.
<lang 6502asm>
STA $20 ;store it in the low byte of our pointer variable.
LDA #$00 ;load the high byte.
|