Instruction Set
Table
Source | Operation | |
Form | ||
| ||
ROR opr |
| |
RORA |
| |
RORX | Rotate Byte Right through Carry Bit | |
ROR opr,X |
| |
ROR ,X |
| |
RSP | Reset Stack Pointer | |
RTI | Return from Interrupt | |
RTS | Return from Subroutine | |
SBC #opr |
| |
SBC opr |
| |
SBC opr | Subtract Memory Byte and Carry Bit from | |
SBC opr,X | Accumulator | |
SBC opr,X |
| |
SBC ,X |
| |
SEC | Set Carry Bit | |
SEI | Set Interrupt Mask | |
STA opr |
| |
STA opr |
| |
STA opr,X | Store Accumulator in Memory | |
STA opr,X |
| |
STA ,X |
| |
STOP | Stop Oscillator and Enable IRQ Pin | |
STX opr |
| |
STX opr |
| |
STX opr,X | Store Index Register In Memory | |
STX opr,X |
| |
STX ,X |
| |
SUB #opr |
| |
SUB opr |
| |
SUB opr | Subtract Memory Byte from Accumulator | |
SUB opr,X | ||
| ||
SUB opr,X |
| |
SUB ,X |
| |
SWI | Software Interrupt | |
TAX | Transfer Accumulator to Index Register | |
|
|
Description
C
b7b0
SP ← $00FF
SP ← (SP) + 1; Pull (CCR)
SP ← (SP) + 1; Pull (A) SP ← (SP) + 1; Pull (X)
SP ← (SP) + 1; Pull (PCH) SP ← (SP) + 1; Pull (PCL)
SP ← (SP) + 1; Pull (PCH) SP ← (SP) + 1; Pull (PCL)
A ← (A) – (M) – (C)
C ← 1
I ← 1
M ← (A)
M ← (X)
A ← (A) – (M)
PC ← (PC) + 1; Push (PCL) SP ← (SP) – 1; Push (PCH)
SP ← (SP) – 1; Push (X) SP ← (SP) – 1; Push (A)
SP ← (SP) – 1; Push (CCR)
SP ← (SP) – 1; I ← 1
PCH ← Interrupt Vector High Byte PCL ← Interrupt Vector Low Byte
X ← (A)
Effect on | Address Mode | Opcode | Operand | Cycles | |||||
| CCR |
|
|
|
|
| |||
|
|
|
|
|
|
|
| ||
H | I | N | Z | C |
|
|
|
| |
|
|
|
|
| DIR | 36 | dd | 5 | |
|
|
|
|
|
| ||||
|
|
|
|
| INH | 46 |
| 3 | |
— | — | ↕ | ↕ | ↕ | INH | 56 |
| 3 | |
|
|
|
|
| IX1 | 66 | ff | 6 | |
|
|
|
|
| IX | 76 |
| 5 | |
— | — | — | — | — | INH | 9C |
| 2 | |
↕ | ↕ | ↕ | ↕ | ↕ | INH | 80 |
| 9 | |
— | — | — | — | — | INH | 81 |
| 6 | |
|
|
|
|
| IMM | A2 | ii | 2 | |
|
|
|
|
| DIR | B2 | dd | 3 | |
— | — | ↕ | ↕ | ↕ | EXT | C2 | hh ll | 4 | |
IX2 | D2 | ee ff | 5 | ||||||
|
|
|
|
| |||||
|
|
|
|
| IX1 | E2 | ff | 4 | |
|
|
|
|
| IX | F2 |
| 3 | |
— | — | — | — | 1 | INH | 99 |
| 2 | |
— | 1 | — | — | — | INH | 9B |
| 2 | |
|
|
|
|
| DIR | B7 | dd | 4 | |
|
|
|
|
| EXT | C7 | hh ll | 5 | |
— | — | ↕ | ↕ | — | IX2 | D7 | ee ff | 6 | |
|
|
|
|
| IX1 | E7 | ff | 5 | |
|
|
|
|
| IX | F7 |
| 4 | |
— | 0 | — | — | — | INH | 8E |
| 2 | |
|
|
|
|
| DIR | BF | dd | 4 | |
|
|
|
|
| EXT | CF | hh ll | 5 | |
— | — | ↕ | ↕ | — | IX2 | DF | ee ff | 6 | |
|
|
|
|
| IX1 | EF | ff | 5 | |
|
|
|
|
| IX | FF |
| 4 | |
|
|
|
|
| IMM | A0 | ii | 2 | |
|
|
|
|
| DIR | B0 | dd | 3 | |
— | — | ↕ | ↕ | ↕ | EXT | C0 | hh ll | 4 | |
IX2 | D0 | ee ff | 5 | ||||||
|
|
|
|
| |||||
|
|
|
|
| IX1 | E0 | ff | 4 | |
|
|
|
|
| IX | F0 |
| 3 | |
— | 1 | — | — | — | INH | 83 |
| 10 | |
— | — | — | — | — | INH | 97 |
| 2 | |
|
|
|
|
|
|
|
|
|
General Release Specification |
| MC68HC05RC16 — Rev. 3.0 |
|
|
|
100 | Instruction Set | MOTOROLA |