devsw
devsw
device store word
Code: 2F F5
Description: Perform a device write from memory, a memory-mapped device or a
peripheral. Store Breg into the word of memory addressed by Areg. The memory
access performed by this instruction is guaranteed to be correctly sequenced with
respect to other device-access instructions. Also the instruction is guaranteed to be
executed after all normal memory store instructions that appear before it in the code
sequence, and before all normal memory stores that appear after it.
Definition:
if (PeripheralStart ≤ Areg ≤ PeripheralEnd)
PeripheralWord′[Areg] ← Breg
else
word′[Areg] ← Breg
Areg′ ← Creg
Breg′ ← undefined
Creg′ ← undefined
Error signals: none
Comments:
Secondary instruction.
See also: devlw devsb devss stnl
69/212
®