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