Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)
284 Chapter9
Intrinsics Reference (cont)
XCONTRAP
If a program executes in both compatibility mode and
native mode, it is preferable to have an NM trap
handler. However, it is possible to pass a CM plabel for
your CM
[CTRL]Y trap handler as follows:
Obtain the 16-bit external CM plabel of your CM
[CTRL]Y trap handler.
Pass this 16-bit plabel in the following 32-bit format:
oldplabel 32-bit signed integer passed by reference
(required)
Returns the plabel of the
[CTRL]Y handler previously
used by your process. This plabel can be either a CM or
NM plabel, as described above. If no plabel was
previously configured, oldplabel returns 0.
Condition Codes
CCE Request granted. Trap enabled.
CCG Request granted. Trap disabled.
CCL Request denied because of an illegal plabel, or because
XCONTRAP was called from a job.
Additional Discussion
See the discussion of enabling/disabling the user written [CTRL]Y trap
handler in Trap Handling Programmer’s Guide. See also the discussion
of FCONTROL(16,17), FCONTROL(41), and RESETCONTROL in this
manual. See Chapter 5, “Using Subsystem Break,” of this manual for
an example illustrating subsystem break processing.
Bits Setting
(0:16)
16-bit external CM plabel
(16:13)
Reserved. Set to 0.
(29:1)
Set to 1.
(30:1)
Set to 0.
(31:1)
Set to 1.