beautypg.com

Addn (add immediate data to destination register) – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 101

background image

77

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.6

ADDN (Add Immediate Data to Destination Register)

Adds the result of the higher 28 bits of 4-bit immediate data with zero extension to the
word data in "Ri", stores the results to "Ri" without changing flag settings.

ADDN (Add Immediate Data to Destination Register)

Assembler format:

ADDN #i4, Ri

Operation:

Ri + extu(i4)

Ri

Flag change:

N, Z, V, and C: Unchanged

Execution cycles:

1 cycle

Instruction format:

Example:

ADDN #2, R3

N

Z

V

C

MSB

LSB

1

0

1

0

0

0

0

0

i4

Ri

R3

9 9 9 9

9 9 9 7

N Z V C

CCR

R3

CCR

0 0 0 0

N Z V C

0 0 0 0

9 9 9 9

9 9 9 9

Instruction bit pattern :

1010 0000 0010 0011

Before execution

After execution