Google
 

Trailing-Edge - PDP-10 Archives - bb-l014r-bm_tops20_v6_1_atpch_18 - autopatch/nipar.unv
There are 3 other files named nipar.unv in the archive. Click here to see a list.
x
,S@P E>= 
p#c<P
	IFN FTSHOW,..LOC==.

0
DEFINE	WORD(NAM,PNUMB<1>),<
	IFN p<..MSK>,<..OFF==.
.OFF+1> 

	..MS
0K==0		
	FIELDM(N
PAM,<.FWORD>)	


p	..MSK==0		
	..O..OFF+NUMB	

>

DEFINE	NXT>),<
	.MSK==0
	..OFF=..OFF+NUMB

>
0
DEFINE	FILLER(NPUM),<
	..FLG==POpS(..MSK)
	IFE ..MSK,<..FLG==-1>
0	IFG <^D<NUM>-<^DP35-..FLG>>,<PRINTpX ?FILL TOO BIG IN A STRUCTURE>
0	...MSK==MASK.(^DP<NUM>,<..FLG+^D<NpUM>>)
	IFN FTSHOW,<
	  PHASE ..O0FF
	  EXP ...MSKP
	>
	..MSK==..MpSK!...MSK
>



DEFINE	HWORD(n0am),<
	..FLG==0	P	
	IFE ..MSK&.LHpALF,<FIELDM(nam,.LHALF)
			  ..FL0G==1>
	IFE ..FLGP,<..MSK==..MSK!.LpHALF
		   IFE ..MSK&.RHALF,<FIELD0M(nam,.RHALF)
		P		     ..FLG==1>
		   IFE ..FLG,<NXTWRD
			      0FIELDM(nam,.LHALFP) >
		  >
>

p
DEFINE	FIELD(NAM,SIZ,POS),<
	..0FLG==0		

	IFB P<POS>,<IFB <SIZ>,p<
	  ...MSK==.RTMSK(<<^-<<..MSK>>0>>) 
	  IFE ...MPSK,<..OFF==..OFF+p1 
	    ..MSK==0		
	    ...MSK==0-1
	  >
	  FIELPDM(NAM,<...MSK>)	p
	..FLG==-1		
	>>

	IFNB <SI0Z>,<.SIZ==^D<SIZ>P> 

	IFNB <POS>p,<		
	  FIELDM(NAM,MASK.(.SIZ,POS0)) 
	  ..FLG==-1P		
	  ..BITS==MApSK.(.SIZ,POS) 
	>

	IFE ..FLG,<0IFGE <^D<.SIZ>-^DP36>,< 
	  WORD(NpAM,<^D<.SIZ>/^D36>) 
	  IFN <<^D<0.SIZ>-<^D<.SIZ>/^PD36>*^D36>>,<	
	p    FIELD(...,<<^D<.SIZ>-<^D<.SIZ>0/^D36>*^D36>>) 
P	  >

	  ..FLG=p=-1		
	>>

	IFE ..FLG,<		
	  .0.BITS==MASK.(^D<.PSIZ>,<^D<.SIZ>-1>p) 

	  REPEAT <^D36-^D<.SIZ>+1>,0< 
	    IFE ..FLPG,<	
	      IFE p<..BITS&..MSK>,<  
			..MSK==..MSK 0!..BITS 
		..FLG P==-1 
	       >  p

	    IFE ..FL!G,..BITS==..BITS_!0<-1> 
	    >
	 !P >

	IFE ..FLG,!p<		
	  ..BITS==M"ASK.(^D<.SIZ>,<^D"0<.SIZ>-1>) 
	  ."P.OFF==..OFF+1	
	"p  ..MSK==..BITS		#
	>

	MSKSTR(#0A'NAM,\..OFFC,..#PBITS) 
	A.'NAM=#p=..OFF
	IFN FTSH$OW,<
	  PHASE	A$0.'NAM
	  EXP	A'$PNAM
	>>

	..OL$pD==..BITS		
	...%OLD==..BITS		

%0>

DEFINE	BIT(N%PAM),<
	..BITS==L%pFTBT.(..OLD)	

&	IFE ..BITS,<PRIN&0TX ?NO ROOM FOR B&PIT IN LAST FIELD>&p

	A%'NAM==..B'ITS_<-<^D35-POS(.'0..OLD)>> 
	A.'N'PAM==..OFF		

	M'pSKSTR(A'NAM,\..O(FFC,..BITS) 
	I(0FN FTSHOW,<
	  P(PHASE ..OFF
	  EX(pP A'NAM
	>

	)..OLD==..OLD&<^-<)0..BITS>> 

>
)P
DEFINE	FIELDM(NA)pM,MASK),<
	IFN M*ASK&..MSK,<	
	  *0..MSK==0		
	  ..*POFF==..OFF+1
	>p

	..MSK==..MSK!+MASK	

	MSKSTR(+0A'NAM,\..OFFC,M+PASK) 
	A.'NAM==+p..OFF
	IFN FTSHO,W,<
	  PHASE	A.,0'NAM
	  EXP	A'N,PAM
	>
>

DEFI,pNE ENDSTR(LENNAM<-LEN>,LSTNAM<LST>)-0,<

	IFN ..MSK,-P<..OFF==..OFF+1> -p

	A.'LSTNAM==...OFF	

	IFN FT.0SHOW,DEPHASE

	.P..LOK==..LOK+1
	.pIFN ..LOK,<PRINTX/ ? MISSING BEGSTR/0>

	IF2,<
	  I/PFDEF ...MSK,<SUPP/pRESS ...MSK>
	  0IFDEF ..BITS,<SUP00PRESS ..BITS>
	 0P IFDEF .SIZ,<SUPP0pRESS .SIZ>
	  IF1DEF ..MSK,<SUPPRE10SS ..MSK>
	  IFD1PEF ..OFF,<SUPPRES1pS ..OFF>
	  IFDE2F ..FLG,<SUPPRESS20 ..FLG>
	  IFDEF2P ..LOK,<SUPPRESS 2p..LOK>
	  IFDEF 3..LOC,<SUPPRESS .30.LOC>
	  IFDEF .3P.OLD,<SUPPRESS ..3pOLD>
	  IFDEF ..4.OLD,<SUPPRESS ..40.OLD>
	>

	IF14P,<
	  IFDEF ...M4pSK,<.XCREF ...MSK5>
	  IFDEF ..BIT50S,<.XCREF ..BITS>5P
	  IFDEF .SIZ,<5p.XCREF .SIZ>
	  6IFDEF ..MSK,<.XCR60EF ..MSK>
	  IFD6PEF ..FLG,<.XCREF 6p..FLG>
	  IFDEF 7..OFF,<.XCREF ..O70FF>
	  IFDEF ..L7POK,<.XCREF ..LOK>7p
	  IFDEF ..LOC,8<.XCREF ..LOC>
	80  IFDEF ..OLD,<.X8PCREF ..OLD>
	  I8pFDEF ...OLD,<.XCR9EF ...OLD>
	>
90
	PURGE WORD,NXTW9PRD,FILLER,HWORD,F9pIELD,BIT,FIELDM
:
	A.'LENNAM==..:0OFF-B
	IFN FTSH:POW,<RELOC ..LOC>>:p



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

	;PIFDEF ..LOK,<IFL ;p..LOK,<PRINTX ? N<EW BEGSTR WITHOUT<0 ENDSTR>>

	..LOK==-1


	..L#f#f0#hBEG
	  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= T %0
	A==<-1T@B<C>+1B<C-D>> T`
	IF1,<IFDEF %AU,<PRINTX ?A ALREU ADY DEFINED>>
	DU@EFINE %A (OP,AC,U`Y,MSK)<
	$A==<ZV B>		
	OP (<AC>,B'Y,MSK)><AC>K:&= ~Ls<

	IFN .qi.MSK,<..OFF==..OF#9F+1> 

	PC.B==A..OFF	

	IFN FT~1SHOW,DEPHASE

	xi..LOK==..LOK+1
	BYIFN ..LOK,<PRINTXC ? MISSING BEGSTRC0>

	IF2,<
	  ICPFDEF ...MSK,<SUPPCpRESS ...MSK>
	  DIFDEF ..BITS,<SUPD0PRESS ..BITS>
	 DP IFDEF .SIZ,<SUPPDpRESS .SIZ>
	  IFEDEF ..MSK,<SUPPREE0SS ..MSK>
	  IFDEPEF ..OFF,<SUPPRESEpS ..OFF>
	  IFDEFF ..FLG,<SUPPRESSF0 ..FLG>
	  IFDEFFP ..LOK,<SUPPRESS Fp..LOK>
	  IFDEF G..LOC,<SUPPRESS .G0.LOC>
	  IFDEF .GP.OLD,<SUPPRESS ..GpOLD>
	  IFDEF ..H.OLD,<SUPPRESS ..H0.OLD>
	>

	IF1HP,<
	  IFDEF ...MHpSK,<.XCREF ...MSKI>
	  IFDEF ..BITI0S,<.XCREF ..BITS>IP
	  IFDEF .SIZ,<Ip.XCREF .SIZ>
	  JIFDEF ..MSK,<.XCRJ0EF ..MSK>
	  IFDJPEF ..FLG,<.XCREF Jp..FLG>
	  IFDEF K..OFF,<.XCREF ..OK0FF>
	  IFDEF ..LKPOK,<.XCREF ..LOK>Kp
	  IFDEF ..LOC,L<.XCREF ..LOC>
	L0  IFDEF ..OLD,<.XLPCREF ..OLD>
	  ILpFDEF ...OLD,<.XCRMEF ...OLD>
	>
M0
	PURGE WORD,NXTWMPRD,FILLER,HWORD,FMpIELD,BIT,FIELDM
N
	PC.A==..OFF-0N0
	IFNFTSHOW,<RELOC..LOC>W,<RE	SbLwLENDREQgLSTPMS{P [3@ w(/:<<<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 ALRHEADY DEFINED>>
	hDEFINE %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? 11<^L<<A>&<-<A>>>><<A>&<i)3 ?9L	
	..LOC==?Y.
	..FRST==<A>
	..LAST==<B>
	@IFL ..LAST-..FRST@8,<PRINTX ? TABBEG@X - A greater tha@xn last.>

	DEFIANE ..DFLT <C>
	 ..DFLT <C>
	i[R >YJq
	..X==..>yFRST
	   REPEAT ?..LAST-..FRST+1,<,8
	   RELOC ..LOC,Y+..X-..FRST
	   ,x.TABND (\<..X-..F-RST>)
	   ..X==.-8.X+1
	   >
	REL-XOC ..LOC+..LAST-.-x.FRST+1
	PURGE ...X,..FRST,..LAST,..DFLT,..LOC
	i[Z AYKg
	.TABNT(Ay\<A-..FRST>)
	I;8FL A-..FRST,<PRI;YNTX ? TABENT - A;x out of range.>
<	IFG A-..LAST,<P<8RINTX ? TABENT - <XA out of range.><x
	RELOC ..LOC+A-..FRST
	B
	k8tP k8t)3P k8t)PP k8t,}P k8t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