65C02 CPU Address Modes
From NerdConsole
Jump to navigationJump to search
Address Mode | Syntax | Description |
---|---|---|
Implied | ABC | Works on specific parts of the CPU without the need for any parameters. |
Accumulator | ABC A | Works specifically on the accumulator. |
Immediate | ABC #10 | Works on a hard coded value. |
Zero Page Absolute | ABC $10 | Works on the specified byte in the zero page. |
Zero Page Indirect | ABC ($10) | Uses a value found in the zero page at the specified address and the next byte to form an address that will be worked on. |
Zero Page Indexed X | ABC $10,X | Add the value in the X register to the specified zero page address to determine which byte to use. |
Zero Page Indexed Y | ABC $10,Y | Add the value in the Y register to the specified zero page address to determine which byte to use. |
Zero Page Indirect Pre-indexed X | ABC ($10,X) | Uses a value found in the zero page at the specified address plus the value in the X register and the next byte to form an address that will be worked on. |
Zero Page Indirect Post-indexed Y | ABC ($10),Y | Uses a value found in the zero page at the specified address and the next byte to form an address where the value in the Y register is then added to determine what will be worked on. |
Absolute | ABC $1023 | Works on the specified byte. |
Absolute Indexed X | ABC $1023,X | Add the value in the X register to the specified address to determine which byte to use. |
Absolute Indexed Y | ABC $1023,Y | Add the value in the Y register to the specified address to determine which byte to use. |
Absolute Indexed X Indirect | ABC ($1023,X) | Uses a value found at the specified address plus the value in the X register and the next byte to form an address that will be worked on. |
Indirect | ABC ($1023) | Uses a value found at the specified address and the next byte to form an address that will be worked on. |
Relative | ABC 10 | Uses the value to directly adjust the program counter, supports negative and positive values. |
Head over to the 65C02 CPU or to the OpCode Table.