Mnemonic |
Symbolic
Operation |
Flags
S Z H P/V N C |
Opcode
76 543 210 |
Hex |
Bytes |
M
Cycles |
Clock
Cycles |
Comments |
IN A, (n) |
A ¬ (n) |
• • • • • • |
11 011 011
¬
n ®
|
DB |
2 |
3 |
11 |
r Reg
000 B
001 C
010 D
011 E
100 H
101 L
111 A
|
IN
r, (C) |
r ¬ (C) |
↕ ↕ 0 P 0 • |
11 101 101
01 r 000
|
ED |
2 |
3 |
12 |
OUT (n), A |
(n) ¬ A |
• • • • • • |
11 010 011
¬ n
®
|
D3 |
2 |
3 |
11 |
OUT (C), r |
(C) ¬ r |
• • • • • • |
11 101 101
01 r 001
|
ED |
2 |
3 |
12 |
Notes: |
The V symbol in the P/V flag column indicates that the P/V
flag contains the overflow of the operation.
Similarly the P symbol indicates parity.
r means any of the registers A, B, C, D, E, H, L.
|
Flag Notation: |
• = flag is not affected, 0 = flag is reset, 1 = flag is
set,
↕ = flag is set according to the result of the operation.
|
|