
5. FUNCTIONAL INSTRUCTIONS
B–61863E/15
PMC SEQUENCE PROGRAM
228
This instruction compares 1, 2, and 4–byte binary data with one another.
Results of comparison are set in the operation output register (R9000).
Sufficient number of bytes are necessary in the memory to hold the input
data and comparison data.
Fig.5.26.2 shows the expression format of COMPB.
COMPB
SUB 32
ffff
Format
specifi–
cation
*
ffff
Input data
(address)
*
ffff
Address of
data to be
compared
ACT
Fig. 5.26.2 Expression format of COMPB
(a) Command (ACT)
ACT=0 : Do not execute COMPB.
ACT=1 : Execute COMPB.
(a) Format specification
Specify data length (1,2, or 4 bytes) and format for the input data
(’constants data’ or ’address data’).
Specification of data length
0
Specification of format
1 : 1 byte length data
2 : 2 byte length data
4 : 4 byte length data
0
0 : Constants
1 : Address
(b) Input data (address)
Format for the input data is determined by the specification in (a).
(c) Address of data to be compared
Indicates the address in which the comparison data is stored.
5.26
COMPB
(COMPARISON
BETWEEN BINARY
DATA)
5.26.1
Function
5.26.2
Format
5.26.3
Control Conditions
5.26.4
Parameters