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

The 6502's stack is intended to be mostly a call stack, with maybe a temporary or two stored while you juggle the registers, not a place for your data frames. From what I vaguely recollect, the cc65 uses Y as the stack pointer, but only when it actually needs stack-like behaviour; at other times it uses static allocation a la Fortran, or so I think.



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

Search: