02.07.2013 Views

Type III C lass A Program

Type III C lass A Program

Type III C lass A Program

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TRAP Function<br />

Purpose:<br />

The TRAP function sets a user·s return<br />

interrupt. This return overrides the call<br />

external interrupt.<br />

Calling Sequence:<br />

PLIST DS<br />

DC<br />

DC<br />

on<br />

CLSeTRAp·<br />

ACtrapsubr)<br />

for an externa1<br />

to DEBUG on an<br />

where trapsuhr is the location transferred to on an external<br />

interrupt. If the parameter trapsubr is a zero, the return<br />

is reset to go to DEBUG on an external interrupt.<br />

Usage:<br />

The user·s interrupt routine should set a flag which should<br />

be examined by the main line program. After the flag is<br />

setl• this routine should return to the location specified in<br />

GPR14 on entry. All other general registers can be used as<br />

desired. The main line program should periodically examine<br />

the trap flag to determine whether an external interrupt has<br />

occurred.<br />

Error Returns:<br />

None.<br />

TRAP Function 315

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!