cpabort

Copy-Paste Abort

cpabort

Aborts any in-progress copy-paste operation, discarding any pending copy target set by a previous Copy instruction.

Encoding

Binary Layout
31
0:5
/
6:10
/
11:15
/
16:20
838
21:30
Rc
31
 
Format X-form
Opcode 0x7C00068C
Extension Base

Operands

Related

More in Base

Reference

Description

Aborts any in-progress copy-paste operation initiated by a previous Copy instruction, discarding the pending copy buffer and resetting the copy-paste state. This is a privileged Base instruction that has no operands and does not modify any condition or status registers.

Operation

CopyPasteState ← ABORT

Programming Note

Use cpabort to safely terminate an ongoing copy-paste sequence, preventing any subsequent paste operations from completing with the reserved data. This is useful in error handling scenarios where a copy operation needs to be aborted without allowing further processing of the copied data. Ensure that cpabort is called at the appropriate privilege level and consider its impact on performance if used frequently.