7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|---|---|---|---|---|---|---|---|
\((SP-1) \longleftarrow PC_h\\ (SP-2) \longleftarrow PC_l\\ SP \longleftarrow SP-2\\ PC \longleftarrow nn\) | ||||||||
CALL nn | ||||||||
1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | CD |
7 | nn | 0 | ||||||
15 | 8 | |||||||
\(\begin{rcases} (SP-1) \longleftarrow PC_h\\ (SP-2) \longleftarrow PC_l\\ SP \longleftarrow SP-2\\ PC \longleftarrow nn \end{rcases} \text{ if } ccc = true\) | ||||||||
CALL ccc, nn | ||||||||
1 | 1 | ccc | 1 | 0 | 0 | CD | ||
7 | nn | 0 | ||||||
15 | 8 |
ccc | Abbrev | Condition | Flag |
---|---|---|---|
000 | NZ | Non Zero | Z |
001 | Z | Zero | |
010 | NC | No Carry | C |
011 | C | Carry | |
100 | PO | Parity Odd | P/V |
101 | PE | Parity Even | |
110 | P | Sign Positive | S |
111 | M | Sign Negative |
Timing
All call operation's take 17 (4,3,4,3,3) T-States, except for the conditional ones when the condition has not been met. In those instances it takes 10(4,3,3) T-States.
Flags Affected
None. |
Opcode Matrix
Uncond | C | NC | Z | NZ | PE | PO | N | P | |
---|---|---|---|---|---|---|---|---|---|
CALL nn |
CALL nn
CDnnnn317 |
CALL C,nn
DCnnnn317 |
CALL NC,nn
D4nnnn317 |
CALL Z,nn
CCnnnn317 |
CALL NZ,nn
C4nnnn317 |
CALL PE,nn
ECnnnn317 |
CALL PO,nn
E4nnnn317 |
CALL N,nn
FCnnnn317 |
CALL P,nn
F4nnnn317 |
Instruction
Opcode hexSize bytesCycle count
| Flow |