TST

TST

Operation:
Destination Tested -->; Condition Codes

Compatibility: 68000 Family

Assembler Syntax:
TST <ea>

Attributes: Size = (Byte, Word, Long)

Description: Compares the operand with zero and sets the con-
dition codes according to the results of the test. The size of
the operation is specified as byte, word, or long.

Condition Codes:
\c32200
X Not affected.
N Set if the operand is negative. Cleared otherwise.
Z Set if the operand is zero. Cleared otherwise.
V Always cleared.
C Always cleared.

Instruction Format:
\i1-+--+-+-2Size,u6Effective Address,3Mode,3Reg,

Instruction Fields:
Size field -- Specifies the size of the operation.
00 -- Byte operation.
01 -- Word operation.
10 -- Long operation.
Effective Address field -- Specifies the destination location. All
addressing modes are allowed as shown:
\mFFF
* Address Register direct and Immediate Data addressing modes
are allowed only on the MC68020, MC68030, and
MC68040 and may only be word or long.

Related Instructions:
CLR,432
Scc,485
Tcc,495
.496498