Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-05 - 43,50337/23/bitget.mac
There is 1 other file named bitget.mac in the archive. Click here to see a list.
COMMENT * SIMULA specification;
OPTIONS(/E:QUICK,bitget);
BOOLEAN PROCEDURE bitget(w,n); INTEGER w,n;
COMMENT TRUE if bit 36-n in w is 1;

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

	TITLE	bitget
	ENTRY	bitget
	SUBTTL	SIMULA utility, Lars Enderin Feb 1977

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


	sall
	search	simmac,simmcr,simrpa
	macinit

	;! Local definitions ;!

	w==X0
	n==X1

bitget:	PROC
	MOVSI	n,(1B0)
	ROT	n,@1(XTAC)
	SETZ
	EXCH	(XTAC)
	TDNE	n
	SETOM	(XTAC)
	RETURN
	EPROC
	LIT
	END;