beautypg.com

73 st (store word data in register to memory), St (store word data in register to memory) – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 193

background image

169

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.73

ST (Store Word Data in Register to Memory)

Subtracts 4 from the value of "R15", stores the word data in "Ri" to the memory address
indicated by the new value of "R15".
If "R15" is given as the parameter "Ri", the data transfer will use the value of "R15"
before subtraction.

ST (Store Word Data in Register to Memory)

Assembler format:

ST Ri, @ – R15

Operation:

R15 – 4

R15

Ri

(R15)

Flag change:

N, Z, V, and C: Unchanged

Execution cycles:

a cycle(s)

Instruction format:

Example:

ST R3, @ – R15

N

Z

V

C

MSB

LSB

0

0

0

1

0

1

1

1

0

0

0

0

Ri

12345674

R3

R3

8 7 6 5

4 3 2 1

8 7 6 5

4 3 2 1

12345674

12345678

12345678

1 2 3 4

5 6 7 8

8 7 6 5

4 3 2 1

R15

1 2 3 4

5 6 7 4

R15

x x x x

x x x x

Memory

Memory

Before execution

After execution

Instruction bit pattern : 0001 0111 0000 0011