Google
 

Trailing-Edge - PDP-10 Archives - BB-H580C-SB_1981 - strdcl.unv
There are 17 other files named strdcl.unv in the archive. Click here to see a list.
x
,5*@P C3<9@ C:y@ C;N:=P C@@ CC[R@ E^y@ E@ E:!htP EA@ EA@ EC|`@#a@ECH@#@ECI@#FEg&:=@ FD@ G@ G",:`P G"^Z@ G; @ G>v= )	$2,AGC8@ I  ~X(A

	IFN A~xNYSIZ,<
	SKIPGE	C		;THIS IS IMPE8RFECT
	JRST	[HRLXI	C,RMBYTE	;HEREx IF "440700" C
		 SOJA	C,.+1]
8	A	B,C
	CAML	XC,[MAXBP,,0]
	JxRST	[HRLI	C,RMBYTE
		 SOJA	C,.+82]
	ADD	C,[SIZ2XPF,,0]>

	IFE AxNYSIZ,<
	IFNDEF SIZ,<SIZ=AP>
	IF8NDEF POZ,<POZ=SVPX>	;REGS 15 AND 16x
	SAVE <SIZ,POZ>
	LDB	SIZ,[BPSIZ81,,C]
	LDB	POZ,X[BPPOS,,C]
	CAIxN	POZ,44		;CHARS ASSUMED LEFT ALIG8NED
	JRST	[IDIV	XPOZ,SIZ
		 MOVE	xPOZ,SIZ
		 LDB	SIZ,[BPSIZ1,,C]
8		 DPB	POZ,[BPPOSX,,C]
		 SOJA	Cx,.+1]
	A	B,C
	ADD	POZ,SIZ
	C8AIN	POZ,44		;CHARXS ASSUMED LEFT ALxIGNED
	JRST	[IDIV	POZ,SIZ
		XDPB8	SIZ,[BPPOS,,C]
		xSOJA	C,.+2]
	DPB	POZ,[BPPOS,,C]
	RESTOR	<POZ,SIZ> >
R	<POI$J3 	X)

	IFN	A	xNYSIZ,<
	HRRZ	A
,R1
	SUB	A,LEN1
8
	HRRZ	T2,R0
	S
XUBI	T2,0(BP1)	;GI
xVES WORD DIF OF THE 2 BP
	IMULI	T82,CPW
	ADD	A,T2X	;T2 IS NEG
	LDBx	T1,[BPPOS,,R0]

	LDB	T2,[BPPOS,,B
8P1]
	SUB	T2,T1

X	IDIVI	T2,BYTSIZ
x
	ADD	A,T2>

	FE ANYSIZ,<
	IFF SIZ,<SIZ=AP>
	SAVE <SIZ>
	L	SIZ,[BPSIZ1,,BP1]
	HRRZ	A,R1
	SUB	A,LEN1
	HXRRZ	T2,R0
	SUBI	xT2,0(BP1)
	IMUL	T2,CPW$##(SIZ)
	8ADD	A,T2
	LDB	TX1,[BPPOS,,R0]
	LxDB	T2,[BPPOS,,BP1]
	SUB	T2,T1
	I8DIV	T2,SIZ
	ADD	XA,T2
	RESTOR	<SIZ>>
RESTOR	<SK;%R@ KF`@ KK|@ X)
	IFNB <xB>,<
	JRST	[PUSH	P,[B]
		 JRST	8A]>
	IFB <B>,<
	PUSHJ	P,A><Kb
=@ MVt= X*
;	SALL
x	T.....=0
	ST....=1
	IF2,<IFNDEF8 A,<EXTERNAL A>X>
	IFNB <B>,<
x	PUSH	P,AP
	IRP	B,<IFIDN <B> <$81>, <ST....=0>
	X	   IFIDN <B> <$x2>, <ST....=-1>
		   IFDIF <B> <8$1>,<
			IFDIF <XB> <$2>,<
			  x IFG ST....,<PUSH	P,B
			   T...8..=T.....+1
>
	X		   ST....=1>>>
	R.....=0
	   IRP  B,<IFIDN <B8> <$1>, <ST....=0X>
		   IFIDN <Bx> <$2>, <ST....=-1>
		   IFDIF <8B> <$1>,<
			IFDXIF <B> <$2>,<
	x		   IFE ST....,<T......=T......+18
				    PUSH	P,XB>
			   IFL STx....,<T.....=T.....+1
				    PUS8H	P,[B]>
			   XIFG ST....,<T....x..=T......+1
			 		R.....=R.....+1 8
					HRRZI	AP,- XT.....+R.....+1(P x)
					PUSH	P,AP!
>
			   ST....!8=1>>>>
	MOVEI	AP!X,-T.....+R.....+1!x(P)
	PUSHJ	P,A
	IFNB <B>,<
	S"8UB	P,[T.....,,T.."X...]
	POP	P,AP>..]
	POP	P,AP>Q&=P Q&Ep@ SAi @ Su|R@ S:%@ )$1,ASB~:=@$A`YvX@@ Yr@ Yr @ Y>=1 x)#
	C.....=0
	IFNB <B>,< I8RP B,<C.....=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