Motorola CPU32 Reference Manual page 225

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

II
TST
Test an Operand
TST
Operation:
Destination Tested
=>
Condition Codes
Assembler
Syntax:
TST (ea)
Attributes:
Size
=
(Byte, Word, Long)
Description:
Compares the operand with zero and sets condition codes according to the results of
the test.
Condition Codes:
x
N
Z
v
C
o
0
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:
15
14
13
12
11
10
9
8
0
1
0
0
1
0
1
0
Instruction Fields:
Size field - Specifies the size of the operation:
00 - Byte operation
01 - Word operation
10 -
Long operation
7
SIZE
MOTOROLA
4-172
INSTRUCTION SET
6
5
4
3
2
o
EFFECTIVE ADDRESS
MODE
I
REGISTER
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents