Trailing-Edge
-
PDP-10 Archives
-
BB-Z759A-SM
-
cobol-source/size1.mac
There are 7 other files named size1.mac in the archive. Click here to see a list.
; UPD ID= 2455 on 2/7/80 at 10:44 AM by NIXON
TITLE SIZE1 FOR COBOTS
SUBTTL CHECK 1-WORD ITEM FOR SIZE ERROR AL BLACKINGTON/CAM
SEARCH COPYRT
SALL
;THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED
; OR COPIED IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE.
COPYRIGHT (C) 1974, 1983, 1984 BY DIGITAL EQUIPMENT CORPORATION
HISEG
.COPYRIGHT ;Put standard copyright statement in REL file
;EDITS
;NAME DATE COMMENTS
;DMN 7-FEB-80 ;[615] CHECK OVERFLOW FLAGS FOR "ON SIZE ERROR".
ENTRY SIZE.1
;CALLING SEQUENCE:
; MOVEI PA,<AC TO BE TESTED>
; PUSHJ PP,SIZE.1
; XWD <EXIT IF SIZE ERROR>,<ADDRESS OF VALUE TO BE COMPARED AGAINST>
SIZE.1: MOVE TB,@0(PP) ;PICK UP XWD
SKIPE OVFLO. ;ANY OVERFLOW?
JRST SIZ.1B ;YES
JFCL 11,SIZ.1B ;[615] TEST FOR OVERFLOW FLAGS SET
MOVM TA,0(PA) ;PICK UP AC AND USE MAGNITUDE
CAMGE TA,0(TB) ;IS IT TOO BIG?
JRST RET.2 ;NO--RETURN TO LOCATION FOLLOWING XWD
SIZ.1B: HLRM TB,0(PP) ;SIZE ERROR--SET UP RETURN ADDRESS
SETOM SZERA. ;SET INDICATOR
POPJ PP,
EXTERNAL SZERA.,OVFLO.,RET.2
PP=17 ;PUSH-DOWN POINTER
PA=16 ;INPUT UUO
TA=13 ;TEMP
TB=14 ;TEMP
END