Google
 

Trailing-Edge - PDP-10 Archives - decuslib20-03 - decus/20-0078/libsim/checkr.mac
There is 1 other file named checkr.mac in the archive. Click here to see a list.
COMMENT * SIMULA specification;
OPTIONS(/E:CODE,checkreal);
INTEGER PROCEDURE checkreal(t);   NAME t;   TEXT t;
COMMENT CHECKREAL analyses the text t from t.pos and on.
If a getreal operation from this position is legal the
returned value is +1. If it would give an error - then
if the remaining text string is blank, the result is 0,
else -1. Pos is placed after a legal item (+1),
after the first nonblank illegal character (-1) or after
the text if the rest is empty (0).
;

!*;! MACRO-10 code !*;!

	TITLE	checkreal
	ENTRY	checkreal
	SUBTTL	SIMULA utility, Lars Enderin Dec 1975

;!*** Copyright 1975 by the Swedish Defence Research Institute. ***
;!*** Copying is allowed.					***


	sall
	search	simmac,simmcr,simrpa
	macinit

	EXTERN	.check

	;! Local definitions ;!

	result==ZBI%S
	t==result+1

checkreal:	PROC
	LI	XTAC,TXGR
	BRANCH	.check
	EPROC
	LIT
	END;