Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The main difference between X and Y is in the indirect addressing modes.

You can use X as an index when you are looping through an array of pointers.

You can use Y as an index when you are looping through an array, where you have a pointer to the beginning of that array.

There are also a couple operations that always use X as a source or destination. There’s TXS/TSX, but no TYS/TSY.

https://www.masswerk.at/6502/6502_instruction_set.html



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: