Fujitsu F2MC-8FX Computer Hardware User Manual


 
92
CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS
6.23 CMP (CoMPare Byte Data of Accumulator and Memory)
Compare the byte data of AL with that of the EA memory (memory expressed in each
type of addressing) and set the results to CCR. AL and EA memory are not changed.
CMP (CoMPare Byte Data of Accumulator and Memory)
Operation
(AL) - (EA)
Assembler format
CMP A, EA
Condition code (CCR)
+: Changed by executing instruction
-: Not changed
N: Set to 1 if the MSB is 1 as the result of operation and set to 0 in other cases.
Z: Set to 1 if the result of operation is 00
H
and set to 0 in other cases.
V: Set to 1 if an overflow occurs as the result of operation and set to 0 in other cases.
C: Set to 1 if a carry occurs as the result of operation and set to 0 in other cases.
NZVC
++++
Table 6.23-1 Number of Execution Cycles / Byte Count / OP Code
EA #d8 dir @IX+off @EP Ri
Number of
execution cycles
23322
Byte count 2 2 2 1 1
OP code 14 15 16 17 18 to 1F