Hacker News new | past | comments | ask | show | jobs | submit login

I've never programmed on a 6502 before and have only read about it; isn't the stack addressable in the zero page?



No, the stack is in the next page up ($0100 - $01ff). While it's accessible as memory, the 6502 doesn't provide any addressing modes specific to this page; accessing it involves multiple instructions, and requires the use of the X register as a temporary.


Got it; thank you for the clarification! Someday I'll try my hand at some 6502 assembly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: