Blog

STX & STY – Store the X and Y Registers

After learning about STA, the instructions STX and STY follow naturally. They allow your program to store the contents of the X and Y index registers into memory. If you’re managing data structures, looping through arrays, or setting up pointers, you’ll frequently want to move index values into memory — and that’s where these instructions.

Read More

Understanding 6502 Memory Layout on the Commodore 64

When diving into programming for the Commodore 64, one of the most crucial aspects to grasp is how memory is organized and accessed by the 6502-based CPU. Unlike modern systems with gigabytes of RAM and virtual memory management, the C64 operates within a tight 64KB address space, and every byte counts. The 6502’s 16-bit Address.

Read More