File DATE.FT (FORTRAN source file)

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

	SUBROUTINE DATE (IMO,IDAY,IYR)
C	PROGRAM COMPUTES THE CURRENT DATE FROM SYSTEM LOCATION 7666
C
C	CHANGED 25-JUN-81 TO GET YEAR BITS AND RENAME AS 'DATE'.
C
S	DUMMY DATEW
S	DUMMY BATW
S	TAD I DATEW
S	DCA TEMP
S	TAD TEMP
S	AND (7
S	DCA I \IYR
S	TAD TEMP
S	RAR;RTR
S	AND (37
S	DCA I \IDAY
S	TAD TEMP
S	CLL RAL;RTL;RTL
S	AND (17
S	DCA I \IMO
S	TAD I BATW
S	AND (600
S	CLL RTR;RTR
S	TAD I \IYR
S	TAD (D1970
S	DCA I \IYR
	RETURN
STEMP,	0
S	CPAGE 4
SDATEW,	6211
S	7666
SBATW,	6201
S	7777
	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