IBM Version 4 Universal Remote User Manual


 
I 31 6 OBJ1L
I 61 7 OBJ1T
C
Cᑍ Prepare for divide-by-zero situation
C
C Z-ADD1 FACT1 5
C Z-ADD FACT2 5
C
Cᑍ and divide by 
C
C FACT1 DIV FACT2 RESULT 5
C
Cᑍ should not get here due to divide-by- exception
C
C MOVE '1' ᑍINLR
C RETRN
C
Cᑍ Program exception subroutine:
C
C ᑍPSSR BEGSR
C
Cᑍ Make sure we are not catching an exception due to the ᑍPSSR
Cᑍ subroutine itself
C
C SWITCH IFEQ ' '
C MOVE '1' SWITCH 1
C
Cᑍ Set API error code to work in nonexception mode
C
C Z-ADD16 QUSBNB
C
Cᑍ Record the source listing line number that caused the failure
C
Cᑍ First, extract the numeric portion of the PSDS line number
C
C Z-ADD8 X 1
C Z-ADD8 Y 1
C Z-ADD LIN#C
C SRC,X DOWEQ' '
C SUB 1 X
C END
C X DOWGT
C MOVE SRC,X TGT,Y
C SUB 1 X
C SUB 1 Y
C END
C
Cᑍ Then record it:
C
C Z-ADDLIN#C FAILPT
C
Cᑍ Record the status code for the failure
C
C MOVELSTATUS DATA
C
Cᑍ Record where to find the status data within DATA
C
C Z-ADD DTAOFF
B-118 System API Programming V4R1