paste.

Paste and Record

paste. RA, RB

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

paste. r4, r5

Encoding

Binary Layout
31
0
/
6
RA
11
RB
16
770
21
1
31
 
Format X-form
Opcode 0x7C00070C
Extension Privileged
Registers Altered CR0

Operands

  • RA
    Dest
  • RB
    Control