ldstub
Assembly Syntax
ldstub [address], regrd
Operation
Atomic load-store unsigned byte instruction copies a byte from memory into regrd, then rewrites the addressed byte in memory to all ones.
Comments
Atomic operation i.e. does not allow intervening interrupts or deferred traps.
Example
ldstub some_addr, %r10
Instruction format
Instruction format