File VALUE.FT (FORTRAN source file)

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

	FUNCTION VALUE(MODE,IPO,LIN,LEN)
	DIMENSION LIN(1)
	VALUE=0.0
	DGT=1.0
	MAN=10
C	BLANKS ENTFERNEN
100	IF(IPO-LEN) 105,105,110
105	IF(LGET(LIN,IPO)-32) 110,107,110
107	IPO=IPO+1
	GOTO 100
110	IF(MAN-1) 112,111,112
111	RETURN
C	VORZEICHEN
112	IF(LGET(LIN,IPO)-43) 113,120,113
113	IF(MODE) 130,114,114
114	IF(LGET(LIN,IPO)-45) 130,115,130
115	DGT=-DGT
C	ZAHL ERMITTELN
120	IPO=IPO+1
130	IF(LGET(LIN,IPO)-48) 135,131,131
131	IF(LGET(LIN,IPO)-57) 140,140,135
135	IF(MAN-1) 136,100,136
136	MAN=1
	IF(MODE) 100,100,137
137	IF(LGET(LIN,IPO)-46) 100,120,100
140	IF(MAN-1) 142,141,142
141	DGT=DGT*0.1
142	VALUE=VALUE*FLOAT(MAN)+FLOAT(LGET(LIN,IPO)-48)*DGT
	GOTO 120
C
	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