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5
3
DIR
BCLR5
2
DIR
4
2
3
DBNZA
2
INH
1
DBNZX
2
INH
1
3
4
DBNZ
2
IX
3
PSHH
1
INH
1
1
2
2
3
3
4
2
3
ADD
1
IX
2
C
5
BRSET6
3
DIR
5
BSET6
2
DIR
4
2
4
INC
DIR
3
TST
DIR
2
INCA
1
INH
1
INCX
INH
1
TSTX
INH
4
MOV
2 DIX+
1
2
3
INC
1
IX
2
CLRH
1
INH
1
2
3
3
2
JMP
1
IX
4
D
BRCLR6
3
DIR
BCLR6
2
DIR
4
2
2
TSTA
1
INH
5
1
2
3
TST
1
IX
4
1
4
BSR
REL
2
LDX
IMM
2
AIX
IMM
2
2
3
3
2
JSR
1
IX
2
E
5
BRSET7
3
DIR
5
BSET7
2
DIR
4
2
MOV
3
DD
1
3
MOV
2 IX+D
1
STOP
1
INH
1
*
2
2
3
3
5
LDX
4
SP2
5
2
4
LDX
3
SP1
4
LDX
IX
1
F
BRCLR7
3
DIR
BCLR7
2
DIR
2
3
CLR
DIR
2
CLRA
1
INH
1
CLRX
INH
1
2
4
CLR
3
SP1
2
CLR
1
IX
WAIT
1
INH
1
TXA
INH
1
2
2
3
3
STX
4
SP2
2
STX
3
SP1
2
STX
IX
1
INH Inherent
IMM Immediate
DIR Direct
EXT Extended
DD
Direct-Direct
IX+D Indexed-Direct
*
Pre-byte for stack pointer indexed instructions
REL Relative
IX
Indexed, No Offset
IX1
Indexed, 8-Bit Offset
IX2
Indexed, 16-Bit Offset
IMD Immediate-Direct
DIX+ Direct-Indexed
SP1 Stack Pointer, 8-Bit Offset
SP2 Stack Pointer, 16-Bit Offset
IX+
Indexed, No Offset with
Post Increment
IX1+ Indexed, 1-Byte Offset with
Post Increment
0
High Byte of Opcode in Hexadecimal
Low Byte of Opcode in Hexadecimal
0
5
BRSET0
3
DIR
Cycles
Opcode Mnemonic
Number of Bytes / Addressing Mode
MSB
LSB
MSB
LSB