.MCALL .MODULE .MODULE GQCNTN,RELEASE=V00,VERSION=30,COMMENT= .ENABLE LC .NLIST CND .LIST MEB ;+ ;************************************************************************ ;*.ST INQUIRE CURRENT NORMALIZATION TRANFORMATION NUMBER * ;*.PAGE * ;*.X NORMALIZATION TRANSFORMATION NUMBER * ;*.X GQCNTN * ;*.LIT * ;************************************************************************ ;* INQUIRE CURRENT NORMALIZATION TRANSFORMATION NUMBER * ;* GKCL,GKOP,WSOP,WSAC,SGOP Lma * ;* * ;* FORTRAN calling sequence: * ;* SUBROUTINE GQCNTN (ERRIND, CTNR) * ;* * ;* Output parameters: * ;* INTEGER ERRIND error indicator * ;* INTEGER CTNR current transformation number * ;* * ;* Parameters: * ;* Out error indicator I * ;* Out current normalization * ;* transformation number (0..n) I * ;* * ;* Effect: If the inquired information is available, the error * ;* indicator is returned as 0 and the values are returned * ;* in the output parameters. * ;* * ;* If the inquired information is not available, the * ;* values returned in the output parameters are implement- * ;* ation dependent and the error indicator is set to one * ;* of the following error numbers to indicate the reason * ;* for non-availability: * ;* * ;* 8 GKS not in proper state: GKS shall be in one * ;* of the states GKOP, WSOP, WSAC or SGOP. * ;* * ;* References: * ;* 4.6.1 * ;* 4.11.2 * ;* * ;* Errors: * ;* none * ;************************************************************************ ;*.ELI * ;************************************************************************ ;- ;; .NLIST .INCLUDE /GOPSTA.INC/ .INCLUDE /GDESTB.INC/ .LIST .PSECT G$$COD,RW,I,LCL,REL,CON GQCNTN::CLR @2(R5) ; Clear the error indicator. TST G$OPST ; Is GKS in state GKOP, WSOP, WSAC or SGOP? BNE 10$ ; Branch if it is. MOV #8.,@2(R5) ; GKS not in proper state. 10$: MOV GS.CNT,@4(R5) ; Return the current normalization transform- ; ation number. RTS PC ; Return .END