7.75
ST (Store Word Data in Program Status Register to Memory)
Subtract 4 from the value of "R15", store the word data in the program status (PS) to the
memory address indicated by the new value of "R15".
■ ST (Store Word Data in Program Status Register to Memory)
Assembler format:
ST PS, @ – R15
Operation:
R15 – 4 → R15
PS → (R15)
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
a cycle(s)
Instruction format:
Example:
ST PS, @ – R15
N
Z
V
C
–
–
–
–
MSB
0
0
0
1
R15
1 2 3 4 5 6 7 8
PS
F F F 8 F 8 C 0
Memory
12345670
x x x x x x x x
12345674
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
0
1
1
1
1
0
LSB
0
1
0
0
0
0
R15
1 2 3 4 5 6 7 4
PS
F F F 8 F 8 C 0
Memory
12345670
12345674
F F F 8 F 8 C 0
After execution
171