3 ms·
This discussion doesn't reach quite that far, and actually I'm not sure how one would work such things into a discussion of 6502 assembly The 6502 supports fun
by colanderman 14y ago
This discussion doesn't reach quite that far, and actually I'm not sure how one would work such things into a discussion of 6502 assembly
The 6502 supports function calls easily: JSR/PHA/PLA/RTS
(Better even than some modern microcontrollers…)
- kabdib 14y ago... but limited to 256 bytes. The 6502 stack is pretty much a toy for a language like C or Pascal, and you definitely need to use a non-hardware stack for actual variables and stuff, probably even return addresses. (I never ran out of 6502 stack programming in assembly, and I wrote a LOT of it, back in the day).