6.117.1 Description
Stores one byte from a Register to the data space. The data space usually consists of the Register File, I/O memory, and SRAM, refer to the device data sheet for a detailed definition of the data space.
A 16-bit address must be supplied. Memory access is limited to the current data segment of 64 KB. The STS instruction uses the RAMPD Register to access memory above 64 KB. To access another data segment in devices with more than 64 KB data space, the RAMPD in the register in the I/O area has to be changed.
This instruction is not available on all devices. Refer to Appendix A.
Operation: | |||
(i) |
DS(k) ← Rr | ||
Syntax: |
Operands: |
Program Counter: | |
(i) |
STS k,Rr |
0 ≤ r ≤ 31, 0 ≤ k ≤ 65535 |
PC ← PC + 2 |
32-bit Opcode:
1001 | 001d | dddd | 0000 |
kkkk | kkkk | kkkk | kkkk |