■
Outline of operation
● According to the operation unit [i], two pieces of data that are stored in two different areas
that start from [S1] and [S2] respectively are compared.
● The comparison result is output to the system relays SRA to SRC (assessment flags for
comparison flags).
■
Processing
● Depending on the relationship between [S1] and [S2], the result of the comparison flag (SR
(system relay)) is as follows:
ON
OFF
OFF
[S1] < [S2]
Relationship
between [S1]
and [S2]
Comparison flags (SR (system relays))
SRA SRB SRC
> = <
OFF OFF
[S1] = [S2]
OFF ON
[S1] > [S2]
ON OFF
Example 1) Operation unit: Unsigned 16 bits (US) (SRC (<) ON)
[S1]…DT0 [S2]…DT1
DT0
DT1
[i]…US
Flag operations during execution
SRA( > ) SRB( = ) SRC( < )
DT0 < DT1 OFF OFF ON
Hexadecimal Unsigned decimal Signed decimal
H 8500 K 34048 K -31488
H 6000 K 24576 K 24576
Example 2) Operation unit: Signed 16 bits (SS) (SRA (>) ON)
[S1]…DT0 [ S2]…DT1
[i]…SS
DT0
DT1
Hexadecimal Unsigned decimal Signed decimal
H 8500 K 34048 K -31488
H 6000 K 24576 K 24576
Flag operations during execution
SRA( > ) SRB( = ) SRC( < )
DT0 > DT1 ON OFF OFF
4.1 CMP (Data Compare)
WUME-FP7CPUPGR-12 4-3