File DAN1

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

*20
/TITLE: DAN 1
/THIS PROGRAM IS THE VERY FIRST 
/PROGRAM THAT I WROTE FOR THE 
/LAB ASSIGNMENTS.  IT CALLS THE
/CONTENTS OF THE RIGHT CONSOLE
/SWITCHES INTO THE ACCUMULATOR
/AND COUNTS THE NUMBER OF BITS
/THAT ARE ON.  THIS NUMBER IS
/DISPLAYED IN BINARY IN THE
/ACCUMULATOR.  
	PMODE
	*0200
START,	CLA CLL
	DCA SUM
	LAS
SWAD,   CLL RAR
	SZL
	ISZ SUM
	SZA
	JMP SWAD
	TAD SUM
	HLT
	JMP START
SUM,	0000



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