Fujitsu F2MC-8FX manual CMP a

Models: F2MC-8FX

1 272
Download 272 pages 2.67 Kb
Page 102
Image 102

CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS

6.22CMP (CoMPare Byte Data of Accumulator and Temporary Accumulator)

Compare the byte data of AL with that of TL and set the results to CCR. AL and TL are not changed.

CMP (CoMPare Byte Data of Accumulator and Temporary Accumulator)

Operation

(TL) - (AL)

Assembler format

CMP A

Condition code (CCR)

N

Z

V

C

 

 

 

 

+

+

+

+

 

 

 

 

+: 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 00H 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.

Number of execution cycle: 1

Byte count: 1

OP code: 12

90

Page 102
Image 102
Fujitsu F2MC-8FX manual CMP a