Sth (Store Half-Word Data In Register To Memory) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

7.77

STH (Store Half-word Data in Register to Memory)

Store the half-word data in "Ri" to memory address "(R13 + Rj)".
■ STH (Store Half-word Data in Register to Memory)
Assembler format:
STH Ri, @(R13, Rj)
Operation:
Ri → ( R13 + Rj)
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
a cycle(s)
Instruction format:
Example:
STH R3, @(R13, R2)
N
Z
V
C
MSB
0
0
0
1
R2
0 0 0 0 0 0 0 4
R3
0 0 0 0 4 3 2 1
R13
1 2 3 4 5 6 7 8
Memory
1234567A
1234567C
x x x x
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
0
0
0
1
Rj
LSB
Ri
R2
0 0 0 0 0 0 0 4
R3
0 0 0 0 4 3 2 1
R13
1 2 3 4 5 6 7 8
Memory
1234567A
1234567C
4 3 2 1
After execution
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents