175
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.79 STB (Store Byte Data in Register to Memory)
Stores 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
NZVC
––––
MSB LSB
00010110 Rj Ri
R2
12345678
1234 5678
0000 0021
R2
R3R3
0000 0021
1234 5678
12345678
21
xx
Memory Memory
Before execution After execution
Instruction bit pattern : 0001 0110 0010 0011