beautypg.com

132 stm1 (store multiple registers) – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 276

background image

252

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.132

STM1 (Store Multiple Registers)

The "STM1" instruction accepts registers in the range R8 to R15 as members of the
parameter "reglist" (See Table 7.132-1.).
Registers are processed in descending numerical order.
If "R15" is specified in the parameter "reglist", the contents of "R15" retained before the
instruction is executed will be written to memory.

STM1 (Store Multiple Registers)

Assembler format:

STM1 (reglist)

Operation:

The following operations are repeated according to the number of registers specified in the
parameter "reglist".

R15 – 4

→ R15

Ri

→ (R15)

Flag change:

N, Z, V, and C: Unchanged

Execution cycles:

If "n" is the number of registers specified in the parameter "reglist", the execution cycles
re

q

uired are as follows.

a × n + 1 cycles

Instruction format:

N

Z

V

C

Table 7.132-1 Bit Values and Register Numbers for "reglist" (STM1)

Bit

Register

Bit

Register

7

R8

3

R12

6

R9

2

R13

5

R10

1

R14

4

R11

0

R15

MSB

LSB

1

0

0

0

1

1

1

1

reglist