Programming with Ophis
<<< Previous |  | Next >>>

# Ophis Command Reference

# Command Modes

These mostly follow the MOS Technology 6500 Microprocessor Family Programming Manual, except for the Accumulator mode. Accumulator instructions are written and interpreted identically to Implied mode instructions.

- Implied: `RTS`

- Accumulator: `LSR`

- Immediate: `LDA #$06`

- Zero Page: `LDA $7C`

- Zero Page, X: `LDA $7C,X`

- Zero Page, Y: `LDA $7C,Y`

- Absolute: `LDA $D020`

- Absolute, X: `LDA $D000,X`

- Absolute, Y: `LDA $D000,Y`

- (Zero Page Indirect, X): `LDA ($80, X)`

- (Zero Page Indirect), Y: `LDA ($80), Y`

- (Absolute Indirect): `JMP ($A000)`

- Relative: `BNE loop`

- (Absolute Indirect, X): `JMP ($A000, X)` — Only available with 65C02 extensions

- (Zero Page Indirect): `LDX ($80)` — Only available with 65C02 extensions

<<< Previous | Home | Next >>>
`tutor7.oph` |  | Basic arguments