This the multi-page printable view of this section.Click here to print.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 |
NOP | |
---|---|
OP |
NOP
0014 |
Instruction
Opcode hexSize bytesCycle count
| Special |
\(A \longleftarrow \overline{A}\)
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 2F |
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
h | set | ||||||||
n | set |
CPL | |
---|---|
OP |
CPL
2F14 |
Instruction
Opcode hexSize bytesCycle count
| Register |
\(A \longleftarrow 0 - A\)
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | ED |
0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 44 |
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
s | set if result is negative | ||||||||
z | set if result is 0 | ||||||||
h | set if borrow from bit 4 | ||||||||
p/v | set if Accumulator was 0x80 before operation | ||||||||
n | set | ||||||||
c | set if Accumulator was not 0x00 before operation |
NEG | |
---|---|
OP |
NEG
ED4424 |
Instruction
Opcode hexSize bytesCycle count
| Register |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 76 |
HALT | |
---|---|
OP |
HALT
7614 |
Instruction
Opcode hexSize bytesCycle count
| Special |
\(CY \longleftarrow \overline{CY}\)
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 3F |
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
h | previous carry is copied | ||||||||
c | set if C was 0, reset if C was 1 |
CCF | |
---|---|
OP |
CCF
3F14 |
Instruction
Opcode hexSize bytesCycle count
| Register |
\(CY \longleftarrow 1\)
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 37 |
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
h | reset | ||||||||
n | reset | ||||||||
c | set |
CPL | NEG | CCF | SCF | |
---|---|---|---|---|
OP |
CPL
2F14 |
NEG
ED4424 |
CCF
3F14 |
SCF
3714 |
Instruction
Opcode hexSize bytesCycle count
| Register |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|
\(IFF \longleftarrow 0\) | |||||||
DI | |||||||
1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 |
\(IFF \longleftarrow 1\) | |||||||
EI | |||||||
1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 |
EI | DI | |
---|---|---|
OP |
EI
FB14 |
DI
F314 |
Instruction
Opcode hexSize bytesCycle count
| Interrupt |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | ED |
0 | 1 | 0 | 1 | 1 | 0 |
Note: Only modes 0, 1 and 2 are valid for IM n
.
IM0 | IM1 | IM2 | |
---|---|---|---|
OP |
IM0
ED4628 |
IM1
ED5628 |
IM2
ED5E28 |
Instruction
Opcode hexSize bytesCycle count
| Interrupt |
\(@\)
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 27 |
Flags |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
z | Set if Accumulator is 0 | ||||||||
h | Varies | ||||||||
p/v | Set if Accumulator parity is even, reset if odd | ||||||||
c | Varies |
DAA | |
---|---|
OP |
DAA
2714 |
Instruction
Opcode hexSize bytesCycle count
| Register |