File SORTI.

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

C	DIE SUBROUTINE SORT DIENT ZUM EINSORTIEREN VON 
C	ARGUMENTEN IN BESTIMMTE INTERVALLE. 
C	VERGLEICHSWERT=		RS1
C	SORTIERTABELLE=		RSAR
C	MAX. WERT IN TABELLE=	RS2


	FUNCTION SORTI(RS1,RS2,RSAR)
	DIMENSION RSAR(10,2)

	IS=0
	IF (RS1-RS2) 10,40,40
10	IF (RS1-RSAR(IS+1,1)) 30,20,20
20	IS=IS+1
	GOTO 10
30	IF (IS) 40,40,50
40	SORTI=0.0
	RETURN
50	SORTI=RSAR(IS,2)

	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