SAM47 INSTRUCTION SET

KS57C2308/P2308/C2316/P2316

 

 

COM — Complement Accumulator

COM

Operation:

A

Operand

Operation Summary

Bytes

Cycles

 

 

 

 

A

Complement accumulator (A)

2

2

 

 

 

 

Description: The accumulator value is complemented; if the bit value of A is "1", it is changed to "0" and vice versa.

 

Operand

 

 

 

Binary Code

 

 

 

Operation Notation

 

 

 

 

 

 

 

 

 

 

 

 

 

A

 

1

1

0

 

1

1

 

1

0

1

A A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

1

 

1

1

 

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example: If the accumulator contains the value 4H (0100B), the instruction

COM A

leaves the value 0BH (1011B) in the accumulator.

5-48

Page 122
Image 122
Samsung KS57C2308 manual COM Complement Accumulator, COM a