File DEMO1.V2

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

/DEMO PROGRAM TO ADD 2 AND 3
/VERSION 2
/THIS VERSION DOES IT TWICE

/ MAY 1977

START,	JMS DOIT	/DO IT THE FIRST TIME
	TSF		/WAIT UNTIL PRINTING IS DONE
	JMP .-1
	JMS DOIT	/DO IT THE SECOND TIME
	JMP I (7605)	/RETURN TO MONITOR

/SUBROUTINE:
DOIT,	0
	TAD (2)		/FIRST NUMBER IS 2
	TAD (3)		/SECOND NUMBER IS 3
	TAD ("0)	/CONVERT RESULT TO DECIMAL DIGIT
	TLS		/PRINT IT
	CLA		/RETURN WITH ACCUMULATOR CLEAR
	JMP I DOIT	/RETURN FROM SUBROUTINE

/END OF DEMO PROGRAM



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