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