| A: relative Adressierungsarten, Postbyte |  | C: Befehle (Opcode) |

## Anhang B

Tabelle B-1: Befehle in alphabetischer Reihenfolge
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
ABX |  |  |  |  |  |  |  |  |  |  |  |  |  | 3A | 3 | 1 | B+X®X (Unsigned) | · | · | · | · | ·
ADC | ADCA ADCB | 89 C9 | 2 2 | 2 2 | 99 D9 | 4 4 | 2 2 | A9 E9 | 4+ 4+ | 2+ 2+ | B9 F9 | 5 5 | 3 3 |  |  |  | A+M+C®A B+M+C®B | | | | | | | | | | | | | | |
ADD | ADDA ADDB ADDD | 8B CB C3 | 2 2 4 | 2 2 3 | 9B DB D3 | 4 4 6 | 2 2 2 | AB EB E3 | 4+ 4+ 6+ | 2+ 2+ 2+ | BB FB F3 | 5 5 7 | 3 3 3 |  |  |  | A+M®A B+M®B D+M:M+1®D | | | · | | | | | | | | | | | | | | | |
AND | ANDA ANDB ANDCC | 84 C4 1C | 2 2 3 | 2 2 2 | 94 D4 | 4 4 | 2 2 | A4 E4 | 4+ 4+ | 2+ 2+ | B4 F4 | 5 5 | 3 3 |  |  |  | AÙM®A BÙM®B CCÙIMM®CC | · · | | | | | | | 0 0 | · · 7
ASL | ASLA ASLB ASL |  |  |  | 08 | 6 | 2 | 68 | 6+ | 2+ | 78 | 7 | 3 | 48 58 | 2 2 | 1 1 |  | 8 8 8 | | | | | | | | | | | | | | | |
ASR | ASRA ASRB ASR |  |  |  | 07 | 6 | 2 | 67 | 6+ | 2+ | 77 | 7 | 3 | 47 57 | 2 2 | 1 1 |  | 8 8 8 | | | | | | | | | · · · | | | |
BIT | BITA BITB | 85 C5 | 2 2 | 2 2 | 95 D5 | 4 4 | 2 2 | A5 E5 | 4+ 4+ | 2+ 2+ | B5 F5 | 5 5 | 3 3 |  |  |  | Bit Test A (MÙA) Bit Test B (MÙB) | · · | | | | | | | 0 0 | · ·
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
CLR | CLRA CLRB CLR |  |  |  | 0F | 6 | 2 | 6F | 6+ | 2+ | 7F | 7 | 3 | 4F 5F | 2 2 | 1 1 | 0®A 0®B 0®M | · · · | 0 0 0 | 1 1 1 | 0 0 0 | 0 0 0
CMP | CMPA CMPB CMPD CMPS CMPU CMPX CMPY | 81 C1 10 83 11 8C 11 83 8C 10 8C | 2 2 5 5 5 4 5 | 2 2 4 4 4 3 4 | 91 D1 10 93 11 9C 11 93 9C 10 9C | 4 4 7 7 7 6 7 | 2 2 3 3 3 2 3 | A1 E1 10 A3 11 AC 11 A3 AC 10 AC | 4+ 4+ 7+ 7+ 7+ 6+ 7+ | 2+ 2+ 3+ 3+ 3+ 2+ 3+ | B1 F1 10 B3 11 BC 11 B3 BC 10 BC | 5 5 8 8 8 7 8 | 3 3 4 4 4 3 4 |  |  |  | Compare M from A Compare M from B Compare M:M+1 from D Compare M:M+1 from S Compare M:M+1 from U Compare M:M+1 from X Compare M:M+1 from Y | 8 8 · · · · · | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
COM | COMA COMB COM |  |  |  | 03 | 6 | 2 | 63 | 6+ | 2+ | 73 | 7 | 3 | 43 53 | 2 2 | 1 1 | ¬A®A ¬B®B ¬M®M | · · · | | | | | | | | | 0 0 0 | | | |
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
CWAI |  | 3C | >20 | 2 |  |  |  |  |  |  |  |  |  |  |  |  | CCÙIMM®CC Wait for Interrupt |  |  |  |  | 7
DAA |  |  |  |  |  |  |  |  |  |  |  |  |  | 19 | 2 | 1 | Decimal Adjust A | · | | | | | 0 | |
DEC | DECA DECB DEC |  |  |  | 0A | 6 | 2 | 6A | 6+ | 2+ | 7A | 7 | 3 | 4A 5A | 2 2 | 1 1 | A-1®A B-1®B M-1®M | · · · | | | | | | | | | | | | | · · ·
EOR | EORA EORB | 88 C8 | 2 2 | 2 2 | 98 D8 | 4 4 | 2 2 | A8 E8 | 4+ 4+ | 2+ 2+ | B8 F8 | 5 5 | 3 3 |  |  |  | A#ÚM®A B#ÚM®B | · · | | | | | | | 0 0 | · ·
EXG | R1, R2 |  |  |  |  |  |  |  |  |  |  |  |  | 1E | 8 | 2 | R1«R22 | · | · | · | · | ·
INC | INCA INCB INC |  |  |  | 0C | 6 | 2 | 6C | 6+ | 2+ | 7C | 7 | 3 | 4C 5C | 2 2 | 1 1 | A+1®A B+1®B M+1®M | · · · | | | | | | | | | | | | | · · ·
JMP |  |  |  |  | 0E | 3 | 2 | 6E | 3+ | 2+ | 7E | 4 | 3 |  |  |  | EA3®PC | · | · | · | · | ·
JSR |  |  |  |  | 9D | 7 | 2 | AD | 7+ | 2+ | BD | 8 | 3 |  |  |  | Jump to Subroutine | · | · | · | · | ·
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
LD | LDA LDB LDD LDS LDU LDX LDY | 86 C6 CC 10 CE CE 8E 10 8E | 2 2 3 4 3 3 4 | 2 2 3 4 3 3 4 | 96 D6 DC 10 DE DE 9E 10 9E | 4 4 5 6 5 5 6 | 2 2 2 3 2 2 3 | A6 E6 EC 10 EE EE AE 10 AE | 4+ 4+ 5+ 6+ 5+ 5+ 6+ | 2+ 2+ 2+ 3+ 2+ 2+ 3+ | B6 F6 FC 10 FE FE BE 10 BE | 5 5 6 7 6 6 7 | 3 3 3 4 3 3 4 |  |  |  | M®A M®B M:M+1®D M:M+1®S M:M+1®U M:M+1®X M:M+1®Y | · · · · · · · | | | | | | | | | | | | | | | | | 0 0 0 0 0 0 0 | · · · · · · ·
LEA | LEAS LEAU LEAX LEAY |  |  |  |  |  |  | 32 33 30 31 | 4+ 4+ 4+ 4+ | 2+ 2+ 2+ 2+ |  |  |  |  |  |  | EA3®S EA3®U EA3®X EA3®Y | · · · · | · · · · | · · | | | · · · · | · · · ·
LSL | LSLA LSLB LSL |  |  |  | 08 | 6 | 2 | 68 | 6+ | 2+ | 78 | 7 | 3 | 48 58 | 2 2 | 1 1 |  | · · · | | | | | | | | | | | | | | | |
LSR | LSRA LSRB LSR |  |  |  | 04 | 6 | 2 | 64 | 6+ | 2+ | 74 | 7 | 3 | 44 54 | 2 2 | 1 1 |  | · · · | 0 0 0 | | | | | · · · | | | |
MUL |  |  |  |  |  |  |  |  |  |  |  |  |  | 3D | 11 | 1 | A´B®D (Unsigned) | · | · | | | · | 9
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
NEG | NEGA NEGB NEG |  |  |  | 00 | 6 | 2 | 60 | 6+ | 2+ | 70 | 7 | 3 | 40 50 | 2 2 | 1 1 | ¬A+1®A ¬B+1®B ¬M+1®M | 8 8 8 | | | | | | | | | | | | | | | |
NOP |  |  |  |  |  |  |  |  |  |  |  |  |  | 12 | 2 | 1 | No Operation | · | · | · | · | ·
OR | ORA ORB ORCC | 8A CA 1A | 2 2 3 | 2 2 2 | 9A DA | 4 4 | 2 2 | AA EA | 4+ 4+ | 2+ 2+ | BA FA | 5 5 | 3 3 |  |  |  | AÚM®A BÚM®B CCÚIMM®CC | · · | | | | | | | 0 0 7 | · ·
PSH | PSHS10 PSHU10 | 34 36 | 5+4 5+4 | 2 2 |  |  |  |  |  |  |  |  |  |  |  |  | Push Registers on S Stack Push Registers on U Stack | · · | · · | · · | · · | · ·
PUL | PULS10 PULU10 | 35 37 | 5+4 5+4 | 2 2 |  |  |  |  |  |  |  |  |  |  |  |  | Pull Registers from S Stack Pull Registers from U Stack | · · | · · | · · | · · | · ·
ROL | ROLA ROLB ROL |  |  |  | 09 | 6 | 2 | 69 | 6+ | 2+ | 79 | 7 | 3 | 49 59 | 2 2 | 1 1 |  | · · · | | | | | | | | | | | | | | | |
ROR | RORA RORB ROR |  |  |  | 06 | 6 | 2 | 66 | 6+ | 2+ | 76 | 7 | 3 | 46 56 | 2 2 | 1 1 |  | · · · | | | | | | | | | · · · | | | |
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
RTI |  |  |  |  |  |  |  |  |  |  |  |  |  | 3B | 6 - 15 | 1 | Return from Interrupt |  |  |  |  | 7
RTS |  |  |  |  |  |  |  |  |  |  |  |  |  | 39 | 5 | 1 | Return from Subroutine | · | · | · | · | ·
SBC | SBCA SBCB | 82 C2 | 2 2 | 2 2 | 92 D2 | 4 4 | 2 2 | A2 E2 | 4+ 4+ | 2+ 2+ | B2 F2 | 5 5 | 3 3 |  |  |  | A-M-C®A B-M-C®B | 8 8 | | | | | | | | | | | |
SEX |  |  |  |  |  |  |  |  |  |  |  |  |  | 1D | 2 | 1 | Sign Extend B into A | · | | | | | 0 | ·
ST | STA STB STD STS STU STX STY |  |  |  | 97 D7 DD 10 DF DF 9F 10 9F | 4 4 5 6 5 5 6 | 2 2 2 3 2 2 3 | A7 E7 ED 10 EF EF AF 10 AF | 4+ 4+ 5+ 6+ 5+ 5+ 6+ | 2+ 2+ 2+ 3+ 2+ 2+ 3+ | B7 F7 FD 10 FF FF BF 10 BF | 5 5 6 7 6 6 7 | 3 3 3 4 3 3 4 |  |  |  | A®M B®M D®M:M+1 S®M:M+1 U®M:M+1 X®M:M+1 Y®M:M+1 | · · · · · · · | | | | | | | | | | | | | | | | | 0 0 0 0 0 0 0 | · · · · · · ·
SUB | SUBA SUBB SUBD | 80 C0 83 | 2 2 4 | 2 2 3 | 90 D0 93 | 4 4 6 | 2 2 2 | A0 E0 A3 | 4+ 4+ 6+ | 2+ 2+ 2+ | B0 F0 B3 | 5 5 7 | 3 3 3 |  |  |  | A-M®A B-M®B D-M:M+1®D | 8 8 · | | | | | | | | | | | | | | | |
Instruction | Forms | Adressing Modes | Description |  |  |  |  |
Immediate | Direct | Indexed 1 | Extended | Inherent | 5 | 3 | 2 | 1 | 0
Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | Op | ~ | # | H | N | Z | V | C
SWI | SWI6 SWI26 SWI36 |  |  |  |  |  |  |  |  |  |  |  |  | 3F 10 3F 11 3F | 19 20 20 | 1 2 2 | Software Interrupt 1 Software Interrupt 2 Software Interrupt 3 | · · · | · · · | · · · | · · · | · · ·
SYNC |  |  |  |  |  |  |  |  |  |  |  |  |  | 13 | >4 | 1 | Synchronize to Interrupt | · | · | · | · | ·
TFR | R1, R2 |  |  |  |  |  |  |  |  |  |  |  |  | 1F | 6 | 2 | R1®R22 | · | · | · | · | ·
TST | TSTA TSTB TST |  |  |  | 0D | 6 | 2 | 6D | 6+ | 2+ | 7D | 7 | 3 | 4D 5D | 2 2 | 1 1 | Test A Test B Test M | · · · | | | | | | | | | 0 0 0 | · · ·

LEGEND: | ¬ M | Complement of M | | | Test and set if true, cleared otherwise
OP | Operation Code (Hexadecimal) | ® | Transfer Into | · | Not Affected
~ | Number of CPU Cycles | H | Half-carry (from bit 3) | CC | Condition Code Register
# | Number of Program Bytes | N | Negative (sign bit) | : | Concatenation
+ | Arithmetic Plus | Z | Zero result | Ú | Logical or
- | Arithmetic Minus | V | Overflow, 2's complement | Ù | Logical and
´ | Multiply | C | Carry from ALU | #Ú | Logical Exclusive or

NOTES:

1. This column gives a base cycle and byte count. To obtain total count, add the values obtained from the INDEXED ADDRESSING MODE table (s. Tabellen A-1 bis A-4).
2. R1 and R2 may be any pair of 8 bit or any pair of 16 bit registers.
   The 8 bit registers are A, B, CC, DP.
   The 16 bit registers are X, Y, U, S, D, PC.
3. EA is the effective address.
4. The PSH and PUL instructions require 5 cycles plus 1 cycle for each byte pushed or pulled.
5. 5(6) means 5 cycles if branch not taken, 6 cycles if taken (Branch instructions).
6. SWI1 sets I and F bits. SWI2 and SWI3 do not affect I and F.
7. Conditions Codes set as a direct result of the instruction.
8. Value of half-carry flag is undefined.
9. Special case - Carry set if b7is SET.
10. (Bestimmung des Postbytes nach Bild A-1)

Tabelle B-3: Branch Befehle
Instruction | Forms | Addressing Mode | Description |  |  |  |  |  | CMPR *) | Vorzeichen
Relative
OP | ~ | # | H | N | Z | V | C
BCC | BCC LBCC | 24 10 24 | 3 5(6) | 2 4 | Branch C = 0 Long Branch C = 0 | · · | · · | · · | · · | · · |  |
BCS | BCS LBCS | 25 10 25 | 3 5(6) | 2 4 | Branch C = 1 Long Branch C = 1 | · · | · · | · · | · · | · · |  |
BEQ | BEQ LBEQ | 27 10 27 | 3 5(6) | 2 4 | Branch Z = 1 Long Branch Z = 1 | · · | · · | · · | · · | · · |  |
BGE | BGE LBGE | 2C 10 2C | 3 5(6) | 2 4 | Branch > Zero Long Branch > Zero | · · | · · | · · | · · | · · | R > M | Vorzeichen- behaftet
BGT | BGT LBGT | 2E 10 2E | 3 5(6) | 2 4 | Branch > Zero Long Branch > Zero | · · | · · | · · | · · | · · | R > M | Vorzeichen- behaftet
BHI | BHI LBHI | 22 10 22 | 3 5(6) | 2 4 | Branch Higher Long Branch Higher | · · | · · | · · | · · | · · | R > M | Vorzeichenlos
BHS | BHS LBHS | 24 10 24 | 3 5(6) | 2 4 | Branch Higher or Same Long Branch Higer or Same | · · | · · | · · | · · | · · | R > M | Vorzeichenlos
BLE | BLE LBLE | 2F 10 2F | 3 5(6) | 2 4 | Branch < Zero Long Branch < Zero | · · | · · | · · | · · | · · | R < M | Vorzeichen- behaftet
BLO | BLO LBLO | 25 10 25 | 3 5(6) | 2 4 | Branch Lower Long Branch Lower | · · | · · | · · | · · | · · | R < M | Vorzeichenlos
Instruction | Forms | Addressing Mode | Description |  |  |  |  |  | CMPR *) | Vorzeichen
Relative
OP | ~ | # | H | N | Z | V | C
BLS | BLS LBLS | 23 10 23 | 3 5(6) | 2 4 | Branch Lower or Same Long Branch Lower or Same | · · | · · | · · | · · | · · | R < M | Vorzeichenlos
BLT | BLT LBLT | 2D 10 2D | 3 5(6) | 2 4 | Branch < Zero Long Branch < Zero | · · | · · | · · | · · | · · | R < M | Vorzeichen- behaftet
BMI | BMI LBMI | 2B 10 2B | 3 5(6) | 2 4 | Branch Minus (N=1) Long Branch Minus | · · | · · | · · | · · | · · |  |
BNE | BNE LBNE | 26 10 26 | 3 5(6) | 2 4 | Branch on Z=0 Long Branch on Z=0 | · · | · · | · · | · · | · · |  |
BPL | BPL LBPL | 2A 10 2A | 2 5(6) | 2 4 | Branch Plus (N=0) Long Branch Plus | · · | · · | · · | · · | · · |  |
BRA | BRA LBRA | 20 16 | 3 5 | 2 3 | Branch Always Long Branch Always | · · | · · | · · | · · | · · |  |
BRN | BRN LBRN | 21 10 21 | 3 5 | 2 4 | Branch Never Long Branch Never | · · | · · | · · | · · | · · |  |
BSR | BSR LBSR | 8D 17 | 7 9 | 2 3 | Branch to Subroutine Long Branch to Subroutine | · · | · · | · · | · · | · · |  |
BVC | BVC LBVC | 28 10 28 | 3 5(6) | 2 4 | Branch V = 0 Long Branch V = 0 | · · | · · | · · | · · | · · |  |
BVS | BVS LBVS | 29 10 29 | 3 5(6) | 2 4 | Branch V = 1 Long Branch V = 1 | · · | · · | · · | · · | · · |  |

*) | R: | A, B, D, S, U, X, Y
| M: | Wert einer bzw. zweier Speicherzellen

| A: relative Adressierungsarten, Postbyte |  | C: Befehle (Opcode) |