cpabort

Copy-Paste Abort

cpabort

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

Details

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.

Pseudocode 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.

Example

cpabort

Encoding

Binary Layout
31
0
/
6
/
11
/
16
838
21
Rc
31
 
Format X-form
Opcode 0x7C00068C
Extension Base

Operands