Google
 

Trailing-Edge - PDP-10 Archives - AP-D483B-SB_1978 - macten.unv
There are 93 other files named macten.unv in the archive. Click here to see a list.
xO@P C' A
	OP%%IA	(A,B,ADD,SUB)(AC2L{G  
<^D35-<^L< 8RGHBT.(A)>>+<^D3 X7*<<^L<RGHBT.(A)>>/^D36>>>.(A)C:' yXMTXZ	A,-1-<B>TXZ	A,-1-ES| !

	REPEAT	!83,<
	TXCE	A,1B<B>!1B<C>
>B<G@ :xWOP%%CA (A,B,)OP%%CA (AGD >8sOP%%CA (A,B,A)P%%CA (AGDP <8cOP%%CA (A,B,E)P%%CA (AGDp <xgOP%%CA (A,B,G)P%%CA (AGDy  =8kOP%%CA (A,B,GE)%%CA (AGE@ ;8[OP%%CA (A,B,L)P%%CA (AGEI  ;x_OP%%CA (A,B,LE)%%CA (AGE` =xoOP%%CA (A,B,N)P%%CA (AG&tkg "8

	DEFINE	"XINFO.(OPCODE,NEWA"xRG)<
	OPCODE	NEWARG>	OPCODE	NEWG>vC@ X	ELALL

		x	   PAGE	;(CONTINUED ON NEXT PAGE)8
			   SALL	;(COXNTINUED FROM PREVIOUS PAGE)
REVI6= (X
]
	..OLD==(x10
	..TYP==3
IF)E <C>+1,..TYP==0)8
IFE <C>-^O7777)X77,..TYP==1
IFE )x<C>-^O777777B17,*..TYP==2
..POS==*8POS(<C>)
..WID=*X=WID(<C>)
	RADI*xX	10
	DF%%ST (\.+.TYP,A,<B>,\..P+8OS,\..WID)
	PURG+XE	..OLD,..TYP,..POS,..WIDTYP,..PI(\z ,
u

	RADIX	.,8.OLD
DEFINE	B (,XOPS,AC,E),<
	..C,x==0
	IRP OPS,<
-		IFE A-..C,<
	-8		STOPI
			IFN 3-X-..C, OPS <AC>,C-x'E
			IFE 3-..C,. OPS <AC>,[POINT .8E,C'E,D]
		>
	..C==..C+1>
	PURGE	..C>

	PI'7 C
OP%%IN	(A,B,DIV)%IN	(AKc  	-
	IRP	A,8<
	IF2,<	IFNDEF	XA,<EXTERN A> >>,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	A,<<C>
x&<B>>
	JRST	.+3
	TXNN	A,<<-<C8>-1>&<B>>
	JRST	D
>>>
	JRSTUVn
 xC
IFDIF <B><C>,<
	JFCL	18,.+1		;
	JRST	.+X1		;
IFNB <B>,<x	JFCL	1,B
  IFNB <C>,<IFIDN <C8><D>,<IFIDN <D>X<E>,< JRST	C>>>x>
IFB <B>,<	JFCL	1,i
  IFIDN <8C><D>,<IFIDN <XD><E>,< JRST	C>x>>
>;<><>

IFDIF <C><D>,<
	H8RLOI	A,-2		;
IFXNB <C>,<	AOBJP	xA,C
  IFNB <D>,<IFIDN <D><E>,8<JRST	D>>>
IFB X<C>,<IFDIF <D><xE>,<AOBJP A,i>
	    IFIDN <D>8<E>,<AOBJN A,DX>>
>;<><>

IFDxIF <D><E>,<
	IF2,<IFE A,<PRINT8X ? A MUST BE NOXN-ZERO IN JUMPPT>x>
	MOVEI	A,0		;
	BLT	A,0		;
I8FNB <D>,<	JUMPE	XA,D
  IFNB <Ex>,<	JRST	E>>
IFB <D>,<	JUMPN	A8,E>
>;<><>

i:
>;<><>

Y$- x	w<1B<^L<A>>><1B<^L<A>Y tQ xY>
C@ /
{ B (<MOVE/8,HRRZ,HLRZ,LDB>,<A>,<C>)LDB>,<YO%yG 	Q
	IFNDEF	8LSTIN.,	LSTIN.==0X
IFE LSTIN.,<
	xIFB <A>,	.XCREF
			XLIST>
LSTIN.==LSTIN.+1
INYO%{G X	[
IFG LSTIxN., LSTIN.==LSTIN.-1
IFLE LSTIN.,8<	.CREF
		LIST>
CREF
		LIST> x	o<<<1<A>>-1>B<B>><A>>[?7 1x=
	.XCREF
	TEST%%=0
IFE	<28<B>_-^D18>,<
	T2XEST%%=1
	.CREF
2x	MOVEI	A,<B>
	3.XCREF
>
IFN	<38B>,<
IFE	<<B>_^3XD18>,<
	TEST%%=13x
	.CREF
	MOVSI	4A,(B)
	.XCREF
>
IFE	<<<B>-^4XD18>-^O777777>,<
	TEST%%=1
	.CRE5F
	HRROI	A,<B>58
	.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[X	<^O37777777&A>[8,1B<A_-^D30>,TLN[XN,TRNN,TDNN
IFNB[x <B>,	OP%%TX	A,\<B>,TLNN,TRNN,TDNN
	.CREF
,TDibx T
	.XCREF
IFB <B>, TXO	(<TX^O37777777&A>,1BTx<A_-^D30>)
IFNBU <B>,<
IFN <<AU8>&^O777777777760>UX, PRINTX ? A IS UxNOT AN ACCUMULATOVR
IFE	<<<B>_-^DV818>-^O777777>,<
VX	.CREF
	ORCMI	AVx,<,,-1-<B>>
	.XWCREF>
IFN	<<<B>W8_-^D18>-^O777777>WX,<
	OP%%TX	A,<WxB>,TLO,TRO,TDO
>>	.CREFO,TDO
>ib| hXQ
	.XCREF
IFB  <B>,	OP%%TiX	<^O37777777&A>i8,1B<A_-^D30>,TLOiXA,TROA,TDOA
IFNBix <B>,	OP%%TX	A,j<B>,TLOA,TROA,TDOA
	.CREF
,TDib|P dX1
	.XCREF
IFB  <B>,	OP%%TeX	<^O37777777&A>e8,1B<A_-^D30>,TLOeXE,TROE,TDOE
IFNBex <B>,	OP%%TX	A,f<B>,TLOE,TROE,TDOE
	.CREF
,TDib}` fXA
	.XCREF
IFB  <B>,	OP%%TgX	<^O37777777&A>g8,1B<A_-^D30>,TLOgXN,TRON,TDON
IFNBgx <B>,	OP%%TX	A,h<B>,TLON,TRON,TDON
	.CREF
,TDicP Ox
	.XCREF
IFB <B>, TXZ	(<P8^O37777777&A>,1BPX<A_-^D30>)
IFNBPx <B>,<
IFN <<AQ>&^O777777777760>Q8, PRINTX ? A IS QXNOT AN ACCUMULATORR
IFE	<<<B>_-^DQx18>-^O777777>,<
R8	.CREF
	ANDI	A,RX<,,-1-<B>>
	.XCRxREF>
IFN	<<<B>_S-^D18>-^O777777>,S8<
	OP%%TX	A,<BSX>,TLZ,TRZ,TDZ
>>	.CREFZ,TDZ
>>icT bX!
	.XCREF
IFB  <B>,	OP%%TcX	<^O37777777&A>c8,1B<A_-^D30>,TLZcXA,TRZA,TDZA
IFNBcx <B>,	OP%%TX	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O,vP O,P j.+jP >}{woP