Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-05 - 43,50337/23/gettab.mac
There is 1 other file named gettab.mac in the archive. Click here to see a list.
COMMENT * SIMULA specification;
OPTIONS(/E:QUICK,GETTAB);
INTEGER PROCEDURE GETTAB(table,index);
INTEGER table,index;
COMMENT Executes GETTAB ac, where ac is [index,,table];

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

	TITLE	GETTAB
	ENTRY	GETTAB
	SUBTTL	SIMULA utility, Lars Enderin Oct 1976

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


	sall
	search	simmac,simmcr,simrpa
	macinit

	;! Local definitions ;!

	result==0
	table==0
	index==1

GETTAB:	PROC
	HRL	index(XTAC)
	HRR	table(XTAC)
	CALLI	41
	SETZ
	ST	result(XTAC)
	RETURN
	EPROC
	LIT
	END;