24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APRENB [CALLI 16]<br />

22 • 3 APRENB [CALLI 16]<br />

FUNCTION<br />

Enables trap servicing for a program. When a condition enabled for<br />

trap servicing occurs, control is transferred to the address given by<br />

.JBAPR in the job data area. See Chapter 6 for more information about<br />

handling traps.<br />

CALLING SEQUENCE<br />

MOVE I<br />

APRENB.<br />

return<br />

ac,flags<br />

ac,<br />

In the calling sequence, you can supply the following flags, indicated<br />

by these flag bits:<br />

Bit<br />

. Symbol<br />

Trap Condition<br />

18 AP .REN<br />

19 AP .,POV<br />

21 AP.ABK<br />

22 AP. ILM<br />

23 AP.NXM<br />

24 AP.PAR<br />

26 AP .CLK<br />

29 AP .FOV<br />

32 AP.AOV<br />

Repetitive enable.<br />

Pushdown list overflow.<br />

Reserved.<br />

Memory protection violation.<br />

Nonexistent memory.<br />

Memory parity error.<br />

Clock tick. The clock ticked while your program<br />

was actively running; this trap does not occur for<br />

every clock tick.<br />

Floating-point overflow.<br />

Arithmetic overflow.<br />

When one of these conditions occurs whil~<br />

mode, the monitor:<br />

the processor is in user<br />

1. Stores the PC in location .JBTPC in the Job Data Area. If<br />

the PC is equal to the first or second location in your trap<br />

servicing routine, the program is terminated.<br />

2. Clears the arithmetic and floating-point overflow flags.<br />

3. Transfers control to your trap-servicing routine; the<br />

location is given by the right half of location .JBAPR in the<br />

Job Data Area.<br />

Your program must place the address of the trap-servicing routine into<br />

.JBAPR before executing the APRENB monitor call.<br />

22-5

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

Saved successfully!

Ooh no, something went wrong!