Google
 

Trailing-Edge - PDP-10 Archives - k20v7c - subsys/scpar.unv
There are 15 other files named scpar.unv in the archive. Click here to see a list.
x,SD@P E>= ($&E
	IFN FTSHHOW,..LOC==.

h
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 ...M SK,<..OFF==..OFF+ (1 
	    ..MSK==0 H		
	    ...MSK== h-1
	  >
	  FIEL!DM(NAM,<...MSK>)	!(
	!H..FLG==-1		
	>>

	IFNB <SI!hZ>,<.SIZ==^D<SIZ>"> 

	IFNB <POS>"(,<		
	  FIELDM(N"HAM,MASK.(.SIZ,POS"h)) 
	  ..FLG==-1#		
	  ..BITS==MA#(SK.(.SIZ,POS) 
	#H>

	IFE ..FLG,<#hIFGE <^D<.SIZ>-^D$36>,< 
	  WORD(N$(AM,<^D<.SIZ>/^D36$H>) 
	  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.'N0AM==..OFF		

	M0(SKSTR(A'NAM,\..O0HFFC,..BITS) 
	I0hFN FTSHOW,<
	  P1HASE ..OFF
	  EX1(P A'NAM
	>

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

>
2
DEFINE	FIELDM(NA2(M,MASK),<
	IFN M2HASK&..MSK,<	
	  2h..MSK==0		
	  ..3OFF==..OFF+1
	>(

	..MSK==..MSK!3HMASK	

	MSKSTR(3hA'NAM,\..OFFC,M4ASK) 
	A.'NAM==4(..OFF
	IFN FTSHO4HW,<
	  PHASE	A.4h'NAM
	  EXP	A'N5AM
	>
>

DEFI5(NE ENDSTR(LENNAM<5HLEN>,LSTNAM<LST>)5h,<

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

	A.'LSTNAM==6H..OFF	

	IFN FT6hSHOW,DEPHASE

	7..LOK==..LOK+1
	7(IFN ..LOK,<PRINTX7H ? MISSING BEGSTR7h>

	IF2,<
	  I8FDEF ...MSK,<SUPP8(RESS ...MSK>
	  8HIFDEF ..BITS,<SUP8hPRESS ..BITS>
	 9 IFDEF .SIZ,<SUPP9(RESS .SIZ>
	  IF9HDEF ..MSK,<SUPPRE9hSS ..MSK>
	  IFD:EF ..OFF,<SUPPRES:(S ..OFF>
	  IFDE:HF ..FLG,<SUPPRESS:h ..FLG>
	  IFDEF; ..LOK,<SUPPRESS ;(..LOK>
	  IFDEF ;H..LOC,<SUPPRESS .;h.LOC>
	  IFDEF .<.OLD,<SUPPRESS ..<(OLD>
	  IFDEF ..<H.OLD,<SUPPRESS ..<h.OLD>
	>

	IF1=,<
	  IFDEF ...M=(SK,<.XCREF ...MSK=H>
	  IFDEF ..BIT=hS,<.XCREF ..BITS>>
	  IFDEF .SIZ,<>(.XCREF .SIZ>
	  >HIFDEF ..MSK,<.XCR>hEF ..MSK>
	  IFD?EF ..FLG,<.XCREF ?(..FLG>
	  IFDEF ?H..OFF,<.XCREF ..O?hFF>
	  IFDEF ..L@OK,<.XCREF ..LOK>@(
	  IFDEF ..LOC,@H<.XCREF ..LOC>
	@h  IFDEF ..OLD,<.XACREF ..OLD>
	  IA(FDEF ...OLD,<.XCRAHEF ...OLD>
	>
Ah
	PURGE WORD,NXTWBRD,FILLER,HWORD,FB(IELD,BIT,FIELDM
BH
	A.'LENNAM==..BhOFF-B
	IFN FTSHCOW,<RELOC ..LOC>>C(



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

	DIFDEF ..LOK,<IFL D(..LOK,<PRINTX ? NDHEW BEGSTR WITHOUTDh ENDSTR>>

	..LOK==-1


	..L$)$*0$,BEG
	  Eg$\` KI~
	c==0
Ki	d==0
	IRP B,<L
		d==<d_^DA>L(+<B_<^D36/^DA>>LH
		c==c+1
		ILhFE c-<^D36/^DA>M,<
			EXP d
		^h	c==0
			d==0
		>>

	IFN c,_(<
		d==d_<<<^D_H36/^DA>-c>*^DA_h>
		EXP d
	>

		EXP d
	>
GtqP GtzP Gt)3P Gt8zP Gt:9P GtLzP GuI7P GuLzP Gum6P GvzP Gv
{P Gv<QP GvXzP GvYP GvZ2P 	G
8`Q G
=Q xG
=P'G
@Q G
&=Q G
ak7P G
ak<P G
v[ Q G=P'G=`Q G(`Q G,=Q xG,H Q G-Q K:%yS e&(p
	%NEA==%%%CTR
	NSF.A='%1MXSFA==K:&= u9n|P

	IFN ..MSK,<..OFF==..OFdAF+1> 

	PS.B==bI..OFF	

	IFN FTa9SHOW,DEPHASE

	Z	..LOK==..LOK+1
	YIIFN ..LOK,<PRINTXWQ ? MISSING BEGSTRDa>

	IF2,<
	  I<FDEF ...MSK,<SUPP2RESS ...MSK>
	PRQIFDEFT..BITS,<SUP
	 i IFDEF .SIZ,<SUPP}ARESS .SIZ>
	  IFyiDEF ..MSK,<SUPPREdISS ..MSK>
	  IFDeEF ..OFF,<SUPPRESe S ..OFF>
	  IFDEe@F ..FLG,<SUPPRESSe` ..FLG>
	  IFDEFf ..LOK,<SUPPRESS f ..LOK>
	  IFDEF [email protected],<SUPPRESS .f`.LOC>
	  IFDEF .g.OLD,<SUPPRESS ..g OLD>
	  IFDEF ..[email protected],<SUPPRESS ..g`.OLD>
	>

	IF1h,<
	  IFDEF ...Mh SK,<.XCREF ...MSKh@>
	  IFDEF ..BITh`S,<.XCREF ..BITS>i
	  IFDEF .SIZ,<i .XCREF .SIZ>
	  i@IFDEF ..MSK,<.XCRi`EF ..MSK>
	  IFDjEF ..FLG,<.XCREF j ..FLG>
	  IFDEF [email protected],<.XCREF ..Oj`FF>
	  IFDEF ..LkOK,<.XCREF ..LOK>k 
	  IFDEF ..LOC,k@<.XCREF ..LOC>
	k`  IFDEF ..OLD,<.X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N5I`Q ~]NLH P$]NLL@P"]NtH P!]NtL@P @]OH P ]OL`P'@]O< Q @_69: da%)%%%CTR==%%U%CTR+1
	%NEA==%%%CTR
	NSF.A==at)3P atkyP at|XP auI7P auLzP auh6P auhzP auxUP av:=P av\yP a
5|@P'~a
>,Q xa
ak7P a
ak<P a
t Q a
t=Q xa
|*@P a@Q xa.<@P'a? x(<^L<<A>&<-<A>>>><<A>&<aL-[yP$aLt)3P aLt:P aLtkP aLuI7P aLuLzP aLu[yP aLv
vP aLv=P aN@P'aN5I`Q xaNm|@Q @aO; P'aOL`Q xaPt)3P aPt+P aPt;wP aPtH:P aPtI;P aPt[4P aPtlUP aPuZP aPu)WP aPuI7P aPuLzP aPuMqP aPulYP aPv
tP aPv=P aPvN8P aPvx5P aRJ`P  aR{@Q ~aR$Q xaR$]@Q aR-Z P"aR6*`P'aRMmQ |aRTk@Q xaRfx`P @aRv,@P aS: P!aSL`Q xaS'P$aS<`P gt)3P gt;ZP gtH:P guI7P guLzP guX<P gvyP g
mQ xg
$Q g
ak7P g
ak<P g<L`P'g
vi9P g.,@ 0$
	JRST [MF9OVX T1,A
IFB <0AB>,<RET>
IFNB <pAB>,<
   IFIDN <.aB><CPOPJ>,<RET>
;Q   IFDIF <B><CPO@yPJ>,<JRST B>
   >
		]
B>
  g@P 	g$]Z .AX
	SAVEAC Ti<T1,T2,T3,T4,T5,T^I6,P1,P2>
IFN FTTb)RACE,<
	XMOVEI TbI1,.		
IFNB <C>,/@<XMOVEI T2,[ASCIZ/a /C/]>
IFB <C>\h,<SETZ T2,>
	MOV]	X T3,EVTB
	CALLJh EVTTRC		
>
	MOK	VX T1,.NCA
	MOVX T2,EVTB
MOVgPt)3P gPuI7P gPuLzP gPulP gPv P gPv@P gPv`P gRvQ gSQ gS Q gS0Q q@ )fA==:BI
,=P q I 
	$CBACC=i=<Z 46>		
	A (<B>,46C,D) (<z Q 7
	$CBACT=q=<Z 65>		
	A (<B>,65C,D) (<8z A >
	$CBCCT=a=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