Fujitsu F2MC-8FX manual Cmpw a

Models: F2MC-8FX

1 272
Download 272 pages 2.67 Kb
Page 108
Image 108

CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS

6.25CMPW (CoMPare Word Data of Accumulator and Temporary Accumulator)

Compare the word data of A with that of T and set the results to CCR. A and T are not changed.

CMPW (CoMPare Word Data of Accumulator and Temporary Accumulator)

Operation

(T) - (A)

Assembler format

CMPW 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 0000H 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 cycles: 2

Byte count: 1

OP code: 13

96

Page 108
Image 108
Fujitsu F2MC-8FX manual Cmpw a