File SWAP.FT (FORTRAN source file)

Directory of image this file is from
This file as a plain text file

	SUBROUTINE SWAP(N1,N2)
C UMKEHREN DER BITFOLGE IN N1 (BIT 4...11) - ERGEBNIS N2
C FORTRAN II
C SR : BIT.FT
	N2=0
	DO 1005 N=5,12
	IN=N1
	CALL BIT(IN,N,M)
	NL=N-4
	IF(NL-1)1001,1001,1002
1001	CONTINUE
S	CLA CLL
S	TAD \N2
S	TAD \M
S	DCA \N2
	GOTO 1005
1002	DO 1003 L=2,NL
S	CLA CLL
S	TAD \M
S	CLL RAL
S	DCA \M
1003	CONTINUE
	GOTO 1001
1005	CONTINUE
	RETURN
	END



Feel free to contact me, David Gesswein djg@pdp8online.com with any questions, comments on the web site, or if you have related equipment, documentation, software etc. you are willing to part with.  I am interested in anything PDP-8 related, computers, peripherals used with them, DEC or third party, or documentation. 

PDP-8 Home Page   PDP-8 Site Map   PDP-8 Site Search