File MAT9.TMP

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

'BEGIN' 'COMMENT'	SIMPLE-MINDED DEMO;
	'BOOLEAN' B1, B2;
	'INTEGER' I,J;
	SKIP; SKIP;
	WRITE (1,"	*** THIS IS AN ALGOL DEMONSTRATION ***");
	SKIP;
START:	SKIP; SKIP;
	WRITE (1,"ENTER 2 INTEGERS <A,B>: ");
	READ (1,I,J);
	B1 := I=0;
	B2 := J=0;
	'IF' B1 'AND' B2 'THEN'
		'GOTO' EXIT;
	'IF' I>J 'THEN'
		WRITE (1,"FIRST NUMBER (",I," ) IS GREATER.")
	'ELSE'
		'IF' J>I 'THEN'
			WRITE (1,"SECOND NUMBER (",J," ) IS GREATER.")
		'ELSE'
			WRITE (1,"THE NUMBERS ARE EQUAL.");
	'GOTO' START;
EXIT:	SKIP; SKIP;
	WRITE (1,"TWO ZEROES STOPS THIS PROGRAM,");
	SKIP;
	WRITE (1,"TYPE 'ST 400' TO RESTART.");
	SKIP; SKIP
'END' *** NOTICE NO SEMI-COLON NEEDED ON PREVIOUS STATEMENT ***
$
 





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