65C02 CPU Address Modes: Difference between revisions
From NerdConsole
Jump to navigationJump to search
NerdOfEpic (talk | contribs) m (NerdOfEpic moved page 65C02 CPU AddressModes to 65C02 CPU Address Modes without leaving a redirect) |
NerdOfEpic (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{| class='wikitable' | {| class='wikitable' | ||
! | ! Address Mode !! width='115' | Syntax !! Description | ||
|- | |- | ||
| [[Address Mode - Implied|Implied]] | | [[Address Mode - Implied|Implied]] | ||
| Line 62: | Line 62: | ||
| Uses the value to directly adjust the program counter, supports negative and positive values. | | Uses the value to directly adjust the program counter, supports negative and positive values. | ||
|} | |} | ||
Head over to the [[Chip - 65C02 CPU|65C02 CPU]] or to the [[65C02 CPU OpCodes|OpCode Table]]. | |||
{{#css:User:NerdOfEpic/basic.css}} | {{#css:User:NerdOfEpic/basic.css}} | ||
Latest revision as of 20:27, 31 January 2024
| 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.