.MCALL .MODULE .MODULE GQMK,RELEASE=V00,VERSION=30,COMMENT= .ENABLE LC .NLIST CND .LIST MEB ;+ ;************************************************************************ ;*.ST INQUIRE MARKERTYPE * ;*.PAGE * ;*.X MARKERTYPE * ;*.X GQMK * ;*.LIT * ;************************************************************************ ;* INQUIRE MARKERTYPE GKCL,GKOP,WSOP,WSAC,SGOP Lma * ;* Part of INQUIRE CURRENT INDIVIDUAL ATTRIBUTE VALUES * ;* * ;* FORTRAN calling sequence: * ;* SUBROUTINE GQMK (ERRIND, MTYPE) * ;* * ;* Output parameters: * ;* INTEGER ERRIND error indicator * ;* INTEGER MTYPE marker type * ;* * ;* Parameters: * ;* Out error indicator I * ;* Out current marker type (-n..-1,1..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.4.2 * ;* 4.11.2 * ;* * ;* Errors: * ;* none * ;************************************************************************ ;*.ELI * ;************************************************************************ ;- ;; .NLIST .INCLUDE /GOPSTA.INC/ .INCLUDE /GDESTB.INC/ .LIST .PSECT G$$COD,RW,I,LCL,REL,CON GQMK:: 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.CMT,@4(R5) ; Return the current markertype. RTS PC ; Return .END