paste

Paste

paste RA, RB

Transfers data from the copy buffer to a specified memory location.

Details

The paste instruction transfers data from the copy buffer to a specified memory location. The effective address (EA) is calculated as the sum of RA and RB. If L=1, metadata bits in the copy buffer are cleared before the transfer.

Pseudocode Operation

if 'paste.' then
    b <- (RA) if RA != 0 else 0
    EA <- b + (RB)
    if L = 1 then
        copy_buffer.md <- 0
    post(MEM(EA,128)||MEMmetadata(EA,128)) <- copy_buffer

Programming Note

The paste instruction is commonly used to transfer data from the copy buffer to memory. Ensure that the effective address (EA) calculated from RA and RB is correctly aligned for optimal performance. If L=1, be aware that metadata bits in the copy buffer are cleared before the transfer, which might affect subsequent operations relying on these bits.

Extended Mnemonics

Extended Mnemonic Equivalent Instruction

Example

paste r4, r5

Encoding

Binary Layout
31
6
/
10
RA
11
RB
16
770
/
 
Format X-form
Opcode 0x7C000604
Extension Privileged
Registers Altered CR0, XERSO

Operands

  • RA
    Dest
  • RB
    Control
  • L
    Logical flag (0 or 1)