Google
 

Trailing-Edge - PDP-10 Archives - decuslib20-03 - decus/20-0078/libsim/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;