Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-07 - 43,50457/macten.unv
There are 93 other files named macten.unv in the archive. Click here to see a list.
xO@P C' 0POP%%IA	(A,B,ADD,SUB)(AC2L{G P	<^D35-<^L<pRGHBT.(A)>>+<^D37*<<^L<RGHBT.(A)>>/^D36>>>.(A)C:' iITXZ	A,-1-<B>TXZ	A,-1-ES| P	
	REPEAT	p3,<
	TXCE	A,1B<B>!1B<C>
>B<G@ *0
SOP%%CA (A,B,)OP%%CA (AGD -p
oOP%%CA (A,B,A)P%%CA (AGDP +p
_OP%%CA (A,B,E)P%%CA (AGDp ,0
cOP%%CA (A,B,G)P%%CA (AGDy  ,p
gOP%%CA (A,B,GE)%%CA (AGE@ *p
WOP%%CA (A,B,L)P%%CA (AGEI  +0
[OP%%CA (A,B,LE)%%CA (AGE` -0
kOP%%CA (A,B,N)P%%CA (AG&tkg p	
	DEFINE	INFO.(OPCODE,NEWA0RG)<
	OPCODE	NEWARG>	OPCODE	NEWG>vC@ ALALL

		0	   PAGE	;(CONTINPUED ON NEXT PAGE)p
			   SALL	;(CONTINUED FROM PREVIOUS PAGE)
REVI6= 	Y
	..OLD==010
	..TYP==3
IFPE <C>+1,..TYP==0p
IFE <C>-^O777777,..TYP==1
IFE 0<C>-^O777777B17,P..TYP==2
..POS==pPOS(<C>)
..WID==WID(<C>)
	RADI0X	10
	DF%%ST (\.P.TYP,A,<B>,\..PpOS,\..WID)
	PURGE	..OLD,..TYP,..POS,..WIDTYP,..PI(\z P	q

	RADIX	.p.OLD
DEFINE	B (OPS,AC,E),<
	..C0==0
	IRP OPS,<
P		IFE A-..C,<
	p		STOPI
			IFN 3-..C, OPS <AC>,C0'E
			IFE 3-..C,P OPS <AC>,[POINT pE,C'E,D]
		>
	..C==..C+1>
	PURGE	..C>

	PI'7 2POP%%IN	(A,B,DIV)%IN	(AKc  P)
	IRP	A,p<
	IF2,<	IFNDEF	A,<EXTERN A> >>,<EXTERN A> >>M&. 7p?OP%%FA	(A,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	TXNN	A,<<-<Czp>-1>&<B>>
	JRST	D
>>>
	JRSTUVn
 0?
IFDIF <PB><C>,<
	JFCL	1p,.+1		;
	JRST	.+1		;
IFNB <B>,<0	JFCL	1,B
  IFNPB <C>,<IFIDN <Cp><D>,<IFIDN <D><E>,< JRST	C>>>0>
IFB <B>,<	JFCPL	1,i
  IFIDN <pC><D>,<IFIDN <D><E>,< JRST	C>0>>
>;<><>

IFDPIF <C><D>,<
	HpRLOI	A,-2		;
IFNB <C>,<	AOBJP	0A,C
  IFNB <D>P,<IFIDN <D><E>,p<JRST	D>>>
IFB <C>,<IFDIF <D><0E>,<AOBJP A,i>P
	    IFIDN <D>p<E>,<AOBJN A,D>>
>;<><>

IFD0IF <D><E>,<
	IPF2,<IFE A,<PRINTpX ? A MUST BE NON-ZERO IN JUMPPT>0>
	MOVEI	A,0		;P
	BLT	A,0		;
IpFNB <D>,<	JUMPE	A,D
  IFNB <E0>,<	JRST	E>>
IFPB <D>,<	JUMPN	Ap,E>
>;<><>

i:
>;<><>

Y$- 0s<1B<^L<A>>><1B<^L<A>Y tQ xY>
C@ P	w B (<MOVEp,HRRZ,HLRZ,LDB>,<A>,<C>)LDB>,<YO%yG PM
	IFNDEF	pLSTIN.,	LSTIN.==0	
IFE LSTIN.,<
		0IFB <A>,	.XCREF
			XLIST>
LSTIN.==LSTIN.+1
INYO%{G 
W
IFG LSTI
0N., LSTIN.==LSTIN
P.-1
IFLE LSTIN.,
p<	.CREF
		LIST>
CREF
		LIST>1<A>>-1>B<B>><A>>[?7 !0
9
	.XCREF
	TEST%%=0
IFE	<!p<B>_-^D18>,<
	T"EST%%=1
	.CREF
"0	MOVEI	A,<B>
	"P.XCREF
>
IFN	<"pB>,<
IFE	<<B>_^#D18>,<
	TEST%%=1#0
	.CREF
	MOVSI	#PA,(B)
	.XCREF
>
IFE	<<<B>-^$D18>-^O777777>,<
	TEST%%=1
	.CRE$PF
	HRROI	A,<B>$p
	.XCREF
>
IFE%	TEST%%,<
IFE	<<%0<B>_^D18>-^O7777%P77B17>,<
	TEST%%%p=1
	.CREF
	HRLO&I	A,(<B>-^O7777&077)
	.XCREF
>
&PIFE	TEST%%,<
	.C&pREF
	MOVE	A,[B']
>>>
	PURGE	TEST%%
	.CREF	TE[Vg,1P)%IN	(A] P
	IFNDEF	A,<A==B>
F	]` p
	IFNDEF	A,<A==B>
	SHOW.	(A)

	SHO_@(Xp .0
	.XCREF
IFE	<<B>_-^D18>.p,<
	.CREF
	CAI/C	A,<B>
	.XCRE/0F
>
IFN	<<B>_-/P^D18>,<
	.CREF
/p	CAMC	A,[B]
	0.XCREF
>
	.CREFCREF
>
	.CREF_@(YP 9p_
	.XCREF
IFE	<<<B>_^D18>:0-^O777777B17>,<
:P	.CREF
	DI	A,(:p-<B>)
	.XCREF
;>
IFN	<<<B>_^D1;08>-^O777777B17>,<;P
	OP%%FP	A,<B>;p,C
>
	.CREF
C
>
	.CREF
_@(YX <0o
	.XCREF
IFE	<<B>_^D18>,<p<
	.CREF
	CI	=A,(B)
	.XCREF
=0>
IFN	<<B>_^D18=P>,<
	.CREF
	C	=pA,[B]
	.XCREF
>
	.CREFCREFP+
	.XCREF
IFE	<<<B>_-^D184>-^O777777>,<
	.40CREF
	DI	A,-<4PB>
	.XCREF
>
I4pFN	<<<B>_-^D18>-5^O777777>,<
	OP%50%IN	A,<B>,C
>
	.CREF>,C
>_@(Z7 5p;
	.XCREF
IFE	<<B>_-^D18>60,<
	.CREF
	CI	6PA,<B>
	.XCREF
>
IFN	<<B>_-^D718>,<
	.CREF
	70C	A,[B]
	.XCREF
>
	.CREFCRE_@(] dA

	.XCREF
IFN <<A>&^O7777dP77777760>, PRINTXdp ? A IS NOT AN AeCCUMULATOR

	TEe0MP%%=0
IFE	<<B>eP_^D18>,<
IFN	<Bep>,<
	TEMP%%=1
	f.CREF
	C	A,(Bf0)
	.XCREF
>>
IfPFE	<<B>_-^D18>,<fp
	TEMP%%=1
	.CRgEF
	D	A,<B>
g0	.XCREF
>
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N,TRNN,TDNN
IFNBK0 <B>,	OP%%TX	A,KP<B>,TLNN,TRNN,TDNN
	.CREF
,TDibx CP
;
	.XCREF
IFB <B>, TXO	(<D^O37777777&A>,1BD0<A_-^D30>)
IFNBDP <B>,<
IFN <<ADp>&^O777777777760>E, PRINTX ? A IS E0NOT AN ACCUMULATOEPR
IFE	<<<B>_-^DEp18>-^O777777>,<
F	.CREF
	ORCMI	AF0,<,,-1-<B>>
	.XFPCREF>
IFN	<<<B>Fp_-^D18>-^O777777>G,<
	OP%%TX	A,<G0B>,TLO,TRO,TDO
>>	.CREFO,TDO
>ib| X
	.XCREF
IFB  <B>,	OP%%TXPX	<^O37777777&A>Xp,1B<A_-^D30>,TLOYA,TROA,TDOA
IFNBY0 <B>,	OP%%TX	A,YP<B>,TLOA,TROA,TDOA
	.CREF
,TDib|P T
	.XCREF
IFB  <B>,	OP%%TTPX	<^O37777777&A>Tp,1B<A_-^D30>,TLOUE,TROE,TDOE
IFNBU0 <B>,	OP%%TX	A,UP<B>,TLOE,TROE,TDOE
	.CREF
,TDib}` V
	.XCREF
IFB  <B>,	OP%%TVPX	<^O37777777&A>Vp,1B<A_-^D30>,TLOWN,TRON,TDON
IFNBW0 <B>,	OP%%TX	A,WP<B>,TLON,TRON,TDON
	.CREF
,TDicP ?0

	.XCREF
IFB <B>, TXZ	(<?p^O37777777&A>,1B@<A_-^D30>)
IFNB@0 <B>,<
IFN <<A@P>&^O777777777760>@p, PRINTX ? A IS ANOT AN ACCUMULATOAPR
IFE	<<<B>_-^DA018>-^O777777>,<
Ap	.CREF
	ANDI	A,B<,,-1-<B>>
	.XCB0REF>
IFN	<<<B>_BP-^D18>-^O777777>,Bp<
	OP%%TX	A,<BC>,TLZ,TRZ,TDZ
>>	.CREFZ,TDZ
>>icT R
	.XCREF
IFB  <B>,	OP%%TRPX	<^O37777777&A>Rp,1B<A_-^D30>,TLZSA,TRZA,TDZA
IFNBS0 <B>,	OP%%TX	A,SP<B>,TLZA,TRZA,TDZA
	.CREF
,TDicTP N
}
	.XCREF
IFB  <B>,	OP%%TNPX	<^O37777777&A>Np,1B<A_-^D30>,TLZOE,TRZE,TDZE
IFNBO0 <B>,	OP%%TX	A,OP<B>,TLZE,TRZE,TDZE
	.CREF
,TDicU` P
	.XCREF
IFB  <B>,	OP%%TPPX	<^O37777777&A>Pp,1B<A_-^D30>,TLZQN,TRZN,TDZN
IFNBQ0 <B>,	OP%%TX	A,QP<B>,TLZN,TRZN,TDZN
	.CREF
,TDif` o
	MOVX	Ao0,1B<B_-^D30>
	.oPXCREF
	<XORM	A,op>!<37777777&B>
	.CREF
7&B>
iftS@ jW
	MOVX	Aj0,1B<B_-^D30>
	.jPXCREF
	<TDNE	A,jp>!<37777777&B>
	.CREF
7&B>
ifuc@ k0a
	MOVX	AkP,1B<B_-^D30>
	.kpXCREF
	<TDNN	A,l>!<37777777&B>
	.CREF
7&B>
ify` lPk
	MOVX	Alp,1B<B_-^D30>
	.mXCREF
	<IORM	A,m0>!<37777777&B>
	.CREF
7&B>
igQ` mpu
	MOVX	An,1B<B_-^D30>
	.n0XCREF
	<ANDCAM	nPA,>!<37777777&B>
	.CREF
7&B>mHtYP'mHuZ7Q xmHvi9Q |mHvzQ pmKc@ PBYTE (3)ApWHO (9)AVER (6)AMIN (18)AEDTo&  0[<^L<-<<A>_<^L<A>>>-1>>>q? iPMTXC	A,<B>TXC	A,<Bq@ P!
	INTERN	pA
	IFB  <C>,<A==B>
	IFNB <C>,<A=B>
 <Cus@  
 B (<SETZ 0M,HLLZS,HRRZS,<PR PINTX ?CAN'T ZERO  pBYTE>>,<A>,<C>)TE>>,<A>,<C>)
lzQ 
D	P ?DP >D)6P D8YP D8sP D;PP D;QP D;QP D;RP D;RP D;SP D;TP D;WP D;WP D;XP D;XP D;YP 	D;YP 	D;ZP 
D;ZP 
D;[P D;[P D;\P 
D;\P 
D;]P D<ZP D=7P DI6P ?D\qP S@Q &tj7Q ?6MiTQ @O,pP O,tP O,vP O,P j.+jP >}{woP