TST A, n
Test
Operation
A AND n
Description
The 8-bit immediate value n is bitwise ANDed with the contents of the accumulator, A.
The appropriate flags are set to 1, depending on the result of the AND logical operation.
The contents of the accumulator are not altered.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic Operand
TST
UM007714-0908
Set if result is negative; reset otherwise.
Set if result is 0; reset otherwise.
Set.
Set if parity is even; reset otherwise.
Reset.
Reset
ADL Mode Cycle Opcode (hex)
A,n
X
3
ED, 64, nn
®
eZ80
CPU
User Manual
364
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers