paste.
Paste and Record
paste. RA, RB
Paste operation that updates CR0 to indicate success/fail.
Details
The paste instruction transfers data from the copy buffer to memory at the effective address (EA) calculated from RA and RB. If L=1, it clears the metadata in the copy buffer before posting. It handles errors by setting CR0 accordingly.
Pseudocode Operation
if there was a copy-paste sequence error or
a translation conflict
CR0←0b000||XERSO
else
if RA = 0 then b ←0
else b ←(RA)
EA ←b +(RB)
if L=1 then
copy_buffer.md←0 /* clear metadata in buffer */
post(MEM(EA,128)||MEMmetadata(EA,128))←copy_buffer
if there was a data transfer problem
CR0←0b000||XERSO
else
CR0←0b001||XERSO
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
Operands
-
RA
Dest -
RB
Control