Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_SRC_1_19910112 - 6-1-monitor/nipar.unv
There are 3 other files named nipar.unv in the archive. Click here to see a list.
x
,5@P E>= 
	IFN,FTSC==.


DEFINE	WORD(NAM,NUMB<1>),<
	IFN (<..MSK>,<..OFF==.H.OFF+1> 

	..MShK==0		
	FIELDM(NAM,<.FWORD>)	

(	..MSK==0		
	..OHFF==..OFF+NUMB	
h
>

DEFINE	NXTWRD(NUMB<1>),<
	(..MSK==0
	..OFF=H..OFF+NUMB

>
h
DEFINE	FILLER(NUM),<
	..FLG==PO(S(..MSK)
	IFE ..HMSK,<..FLG==-1>
h	IFG <^D<NUM>-<^D35-..FLG>>,<PRINT(X ?FILL TOO BIG IHN A STRUCTURE>
h	...MSK==MASK.(^D<NUM>,<..FLG+^D<N(UM>>)
	IFN FTSHOHW,<
	  PHASE ..OhFF
	  EXP ...MSK
	>
	..MSK==..M(SK!...MSK
>

H

DEFINE	HWORD(nham),<
	..FLG==0		
	IFE ..MSK&.LH(ALF,<FIELDM(nam,.HLHALF)
			  ..FLhG==1>
	IFE ..FLG,<..MSK==..MSK!.L(HALF
		   IFE ..HMSK&.RHALF,<FIELDhM(nam,.RHALF)
				     ..FLG==1>
		   IFE ..FLG,<HNXTWRD
			      hFIELDM(nam,.LHALF) >
		  >
>

(
DEFINE	FIELD(NAHM,SIZ,POS),<
	..hFLG==0		

	IFB <POS>,<IFB <SIZ>,(<
	  ...MSK==.RTHMSK(<<^-<<..MSK>>h>>) 
	  IFE ...MSK,<..OFF==..OFF+(1 
	    ..MSK==0H		
	    ...MSK==h-1
	  >
	  FIELDM(NAM,<...MSK>)	(
	H..FLG==-1		
	>>

	IFNB <SIhZ>,<.SIZ==^D<SIZ>> 

	IFNB <POS>(,<		
	  FIELDM(NHAM,MASK.(.SIZ,POSh)) 
	  ..FLG==-1		
	  ..BITS==MA(SK.(.SIZ,POS) 
	H>

	IFE ..FLG,<hIFGE <^D<.SIZ>-^D36>,< 
	  WORD(N(AM,<^D<.SIZ>/^D36H>) 
	  IFN <<^D<h.SIZ>-<^D<.SIZ>/^D36>*^D36>>,<	
	(    FIELD(...,<<^HD<.SIZ>-<^D<.SIZ>h/^D36>*^D36>>) 
 	  >

	  ..FLG= (=-1		
	>>

	IF HE ..FLG,<		
	  . h.BITS==MASK.(^D<.!SIZ>,<^D<.SIZ>-1>!() 

	  REPEAT <!H^D36-^D<.SIZ>+1>,!h< 
	    IFE ..FL"G,<	
	      IFE "(<..BITS&..MSK>,< "H
			..MSK==..MSK"h!..BITS 
		..FLG#==-1 
	       > #(

	    IFE ..FL#HG,..BITS==..BITS_#h<-1> 
	    >
	 $ >

	IFE ..FLG,$(<		
	  ..BITS==M$HASK.(^D<.SIZ>,<^D$h<.SIZ>-1>) 
	  .%.OFF==..OFF+1	
	%(  ..MSK==..BITS		%H
	>

	MSKSTR(%hA'NAM,\..OFFC,..&BITS) 
	A.'NAM=&(=..OFF
	IFN FTSH&HOW,<
	  PHASE	A&h.'NAM
	  EXP	A''NAM
	>>

	..OL'(D==..BITS		
	...'HOLD==..BITS		

'h>

DEFINE	BIT(N(AM),<
	..BITS==L((FTBT.(..OLD)	

(H	IFE ..BITS,<PRIN(hTX ?NO ROOM FOR B)IT IN LAST FIELD>)(

	A%'NAM==..B)HITS_<-<^D35-POS(.)h..OLD)>> 
	A.'N*AM==..OFF		

	M*(SKSTR(A'NAM,\..O*HFFC,..BITS) 
	I*hFN FTSHOW,<
	  P+HASE ..OFF
	  EX+(P A'NAM
	>

	+H..OLD==..OLD&<^-<+h..BITS>> 

>
,
DEFINE	FIELDM(NA,(M,MASK),<
	IFN M,HASK&..MSK,<	
	  ,h..MSK==0		
	  ..-OFF==..OFF+1
	>(

	..MSK==..MSK!-HMASK	

	MSKSTR(-hA'NAM,\..OFFC,M.ASK) 
	A.'NAM==.(..OFF
	IFN FTSHO.HW,<
	  PHASE	A..h'NAM
	  EXP	A'N/AM
	>
>

DEFI/(NE ENDSTR(LENNAM</HLEN>,LSTNAM<LST>)/h,<

	IFN ..MSK,0<..OFF==..OFF+1> 0(

	A.'LSTNAM==0H..OFF	

	IFN FT0hSHOW,DEPHASE

	1..LOK==..LOK+1
	1(IFN ..LOK,<PRINTX1H ? MISSING BEGSTR1h>

	IF2,<
	  I2FDEF ...MSK,<SUPP2(RESS ...MSK>
	  2HIFDEF ..BITS,<SUP2hPRESS ..BITS>
	 3 IFDEF .SIZ,<SUPP3(RESS .SIZ>
	  IF3HDEF ..MSK,<SUPPRE3hSS ..MSK>
	  IFD4EF ..OFF,<SUPPRES4(S ..OFF>
	  IFDE4HF ..FLG,<SUPPRESS4h ..FLG>
	  IFDEF5 ..LOK,<SUPPRESS 5(..LOK>
	  IFDEF 5H..LOC,<SUPPRESS .5h.LOC>
	  IFDEF .6.OLD,<SUPPRESS ..6(OLD>
	  IFDEF ..6H.OLD,<SUPPRESS ..6h.OLD>
	>

	IF17,<
	  IFDEF ...M7(SK,<.XCREF ...MSK7H>
	  IFDEF ..BIT7hS,<.XCREF ..BITS>8
	  IFDEF .SIZ,<8(.XCREF .SIZ>
	  8HIFDEF ..MSK,<.XCR8hEF ..MSK>
	  IFD9EF ..FLG,<.XCREF 9(..FLG>
	  IFDEF 9H..OFF,<.XCREF ..O9hFF>
	  IFDEF ..L:OK,<.XCREF ..LOK>:(
	  IFDEF ..LOC,:H<.XCREF ..LOC>
	:h  IFDEF ..OLD,<.X;CREF ..OLD>
	  I;(FDEF ...OLD,<.XCR;HEF ...OLD>
	>
;h
	PURGE WORD,NXTW<RD,FILLER,HWORD,F<(IELD,BIT,FIELDM
<H
	A.'LENNAM==..<hOFF-B
	IFN FTSH=OW,<RELOC ..LOC>>=(



	..MSK==0=H		
	..OFF==B		
	A.D==B	

	>IFDEF ..LOK,<IFL >(..LOK,<PRINTX ? N>HEW BEGSTR WITHOUT>h ENDSTR>>

	..LOK==-1


	..L#y#z0#|BEG
	  G
t)3P G
t.9P G
t.9P G
tIyP G
tIyP G
tK{P G
tLhP G
tLrP G
tLvP 	G
uI7P G
uLzP G
uXYP G
uYP G
v)@P 
G
v)VP 
G
v8ZP G
v9@P 
G
v9VP G
v;P G
vXZP G
vYRPP G@Q G`Q G9@P G$|@Q G$|`Q G%}@Q G&4 Q G&9Q G&; Q G/`P G4\@P G5I P G6KP  Gex`P Gl,@Q GlL@Q Gth@P @G|0P @G`Q GiP Gk Q G- Q G0P  G`Q Gk Q GN@Q G,- Q G,iQ GD,P GDkP I6= VX%C
	A==<-1VxB<C>+1B<C-D>> W
	IF1,<IFDEF %AW8,<PRINTX ?A ALREWXADY DEFINED>>
	DWxEFINE %A (OP,AC,XY,MSK)<
	$A==<ZX8 B>		
	OPp(<AC>,B'Y,MSK)><AC>K:&= 	i

	IFN .}A.MSK,<..OFF==..OF/F+1> 

	PC.B==

	IFN FT
	SHOW,DEPHASE

	A..LOK==..LOK+1
	N1IFN ..LOK,<PRINTXNi ? MISSING BEGSTRO>

	IF2,<
	  IO(FDEF ...MSK,<SUPPOHRESS ...MSK>
	  OhIFDEF ..BITS,<SUPPPRESS ..BITS>
	 P( IFDEF .SIZ,<SUPPPHRESS .SIZ>
	  IFPhDEF ..MSK,<SUPPREQSS ..MSK>
	  IFDQ(EF ..OFF,<SUPPRESQHS ..OFF>
	  IFDEQhF ..FLG,<SUPPRESSR ..FLG>
	  IFDEFR( ..LOK,<SUPPRESS RH..LOK>
	  IFDEF Rh..LOC,<SUPPRESS .S.LOC>
	  IFDEF .S(.OLD,<SUPPRESS ..SHOLD>
	  IFDEF ..Sh.OLD,<SUPPRESS ..T.OLD>
	>

	IF1T(,<
	  IFDEF ...MTHSK,<.XCREF ...MSKTh>
	  IFDEF ..BITUS,<.XCREF ..BITS>U(
	  IFDEF .SIZ,<UH.XCREF .SIZ>
	  UhIFDEF ..MSK,<.XCRVEF ..MSK>
	  IFDV(EF ..FLG,<.XCREF VH..FLG>
	  IFDEF Vh..OFF,<.XCREF ..OWFF>
	  IFDEF ..LW(OK,<.XCREF ..LOK>WH
	  IFDEF ..LOC,Wh<.XCREF ..LOC>
	X  IFDEF ..OLD,<.XX(CREF ..OLD>
	  IXHFDEF ...OLD,<.XCRXhEF ...OLD>
	>
Y
	PURGE WORD,NXTWY(RD,FILLER,HWORD,FYHIELD,BIT,FIELDM
Yh
	PC.A==..OFF-0Z
	IFNFTSHOW,<RELOC..LOC>W,<RE	@ [3@{`/^<<<1<A>>-1>B<B>><A>>[tP [tP [t<P [t)3P [t.:P [uI7P [uLzP [unP [v
	A==C	@	
	IF1,<IFDEF %`A,<PRINTX ?A ALREADY DEFINED>>
	 DEFINE %A (OP,AC@,Y,MSK)<
	$A==<`Z B>		
	OP (<AC>,B'Y,MSK)><AC]Tt;P ]Tt>P ]TtK0P ]Tt[0P ]TuX<P ]Tu|P ]Tv(qP ]Tv(tP ]Tv(vP ]Tv({P ]Tv,P ]Tv,P ]Tv,P ]Tv8pP ]Tv8yP ]Tw:P a
t)3P a
t.9P a
t.9P a
tIyP a
tIyP a
uI7P a
uLzP a
v;P a
vXZP a@Q a`Q a$|@Q a$|`Q aN@Q a,- Q a? P1U<^L<<A>&<-<A>>>><<A>&<i)3 K
g
	..LOC==K1.
	..FRST==<A>
	..LAST==<B>
	KpIFL ..LAST-..FRSTL,<PRINTX ? TABBEGL0 - A greater thaLPn last.>

	DEFILpNE ..DFLT <C>
	 ..DFLT <C>
	i[R J1O
	..X==..JQFRST
	   REPEAT Jp..LAST-..FRST+1,<8
	   RELOC ..LOC81+..X-..FRST
	   8P.TABND (\<..X-..F8pRST>)
	   ..X==.9.X+1
	   >
	REL90OC ..LOC+..LAST-.9P.FRST+1
	PURGE .9p.X,..FRST,..LAST,..DFLT,..LOC
	i[Z M1
E
	.TABNT(MQ\<A-..FRST>)
	IGFL A-..FRST,<PRIG1NTX ? TABENT - AGP out of range.>
Gp	IFG A-..LAST,<PHRINTX ? TABENT - H0A out of range.>HP
	RELOC ..LOC+A-..FRST
	B
	k8tP k8t)3P k8t)PP k8t,}P k8t89P k8t8P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