paste.
Paste and Record
Paste operation that updates CR0 to indicate success/fail.
Details
A privileged operation that pastes data into a target addressed by RA, with control information from RB. The record form (Rc=1) updates CR0 to reflect the success or failure of the paste operation. This instruction is used in conjunction with copy-paste semantics for atomic data movement and synchronization in a multithreaded environment.
Pseudocode Operation
status ← paste_operation(RA, RB)
if Rc == 1 then
CR0[LT] ← 0
CR0[GT] ← 0
CR0[EQ] ← (status == success)
CR0[SO] ← 0
Programming Note
The paste instruction is used to transfer data from the copy buffer to memory. Ensure that RA and RB are correctly set to calculate the effective address (EA). If L=1, metadata in the copy buffer will be cleared before posting. Handle errors by checking CR0 for error codes.
Example
Encoding
Operands
-
RA
Dest -
RB
Control