Trailing-Edge
-
PDP-10 Archives
-
bb-d868b-bm_tops20_v3a_2020_dist
-
3a-sources/versio.mac
There are 88 other files named versio.mac in the archive. Click here to see a list.
;<3A.MONITOR>VERSIO.MAC.182, 15-Aug-78 10:47:38, Edit by ENGEL
;BUMP EDIT NUMBER
;<3A.MONITOR>VERSIO.MAC.178, 21-Jul-78 13:37:57, Edit by HELLIWELL
;ALLOW VWHO TO BE DEFINED EXTERNALLY
;<3A.MONITOR>VERSIO.MAC.122, 16-May-78 18:09:56, EDIT BY MILLER
;MAKE GOOD 3A VERSIO
;<4.MONITOR>VERSIO.MAC.212, 16-May-78 18:08:25, EDIT BY MILLER
;ADD MINOR VERSION TO SETSPD NAME
;<4.MONITOR>VERSIO.MAC.73, 31-Jan-78 15:10:51, Edit by MCLEAN
;CHANGE VERSION NUMBER TO 4
;<3-MONITOR>VERSIO.MAC.725, 10-Oct-77 14:27:18, EDIT BY KIRSCHEN
;UPDATE COPYRIGHT FOR RELEASE 3
;<3-MONITOR>VERSIO.MAC.666, 11-Aug-77 17:42:50, EDIT BY HURLEY
;<3BOSACK>VERSIO.MAC.1, 2-Aug-77 02:42:42, EDIT BY BOSACK
;TCO 1832 - PSECT CHANGES
;<3-MONITOR>VERSIO.MAC.575, 27-Jun-77 13:26:16, Edit by HESS
;REMOVE SYSTAD AND MAKE IT RESIDENT IN STG...
;<3-MONITOR>VERSIO.MAC.572, 24-Jun-77 17:27:13, Edit by HESS
TITLE VERSIO - MONITOR VERSION NUMBER AND NAME MODULE
SEARCH PROLOG
VEDIT==^D1035
VMAJOR==3
VMINOR==1
IFNDEF VWHO,<VWHO==0>
SCVN==<VWHO>B2+<VMAJOR>B11+<VMINOR>B17+VEDIT
;THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED
; OR COPIED IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE.
;
;COPYRIGHT (C) 1977 BY DIGITAL EQUIPMENT CORPORATION
;THE FOLLOWING MACRO GENERATES THE STRING:
;
;DEFINE SETVER(FOO)
;<FOO(WX(Y)-Z)
;>
;
;THE W,X,Y,Z ARE CALCULATED BY THE MACRO LIKE THIS:
;W - THE NUMBERICAL VALUE OF VMAJOR
;
;X - THE LETTER CORRESPONDING TO THE VALUE OF VMINOR. @=0, A=1...
;
;Y - THE NUMERICAL VALUE OF VEDIT
;
;Z - THE NUMERICAL VALUE OF VWHO
DEFINE .CLNAM<
DEFINE .CLNM(LETTER,WHO)<
IRPC LETTER,<
IFE "A"-"'LETTER'"+VMINOR-1,<
STOPI
IFIDN <LETTER><@>,<
IFE VWHO,< .NAME(\VMAJOR,,\VEDIT,)>
IFN VWHO,< .NAME(\VMAJOR,,\VEDIT,-WHO)>>
IFDIF <LETTER><@>,<
IFE VWHO,< .NAME(\VMAJOR,LETTER,\VEDIT,)>
IFN VWHO,< .NAME(\VMAJOR,LETTER,\VEDIT,-WHO)>>>>>
IFGE VMINOR-^D26,< VMINOR==0
PRINTX %MINOR VERSION TOO LARGE - IGNORED>
IFGE VWHO-7,< VMINOR==
PRINTX %VWHO IS TOO LARGE - IGNORED>
.CLNM(@ABCDEFGHIJKLMNOPQRSTUVWXYZ,\VWHO)
>
;NOW DEFINE A .NAME MACRO TO MAKE A MACRO
DEFINE .NAME(V,M,E,W)<
DEFINE SETVER(FOO)
<FOO(<V'M'('E')'W>)
>>
;USE IT!
.CLNAM
;MACRO TO BUILD VERSION TEXT FROM PARAMETERS IN VERSIO.MAC
IFNDEF SETV1,<
DEFINE SETV1 (VTXT)<
DEFINE SYSTXT (FOO)<
FOO <TOPS-20 System, TOPS-20 Monitor VTXT>>>>
.PSECT NRCOD ;INCLUDE WITH SWAPPABLE CODE
;SYSTEM VERSION TEXT AND DATE OF LOAD
SETVER (SETV1) ;GET SYSTXT DEFINED
DEFINE SETV2 (VTXT) <
DEFINE SYSTXT (FOO)<
FOO <, TOPS-20 Monitor VTXT>>> ;MACRO TO AID IN GENERATION OF VERSION #
; PORTION OF MONITOR NAME ONLY
DEFINE FOO (A)<
ASCIZ @A@>
TSVN:: SYSTXT (FOO)
0 ;ROOM FOR PATCHES
TSVNT==:.-TSVN
SVNM=:SCVN ;DEFINE COMPOSIT VERSION NUMBER
SETVER (SETV2) ;REDEFINE SYSTXT
VTSVN:: SYSTXT (FOO) ;GENERATE STRING OF JUST THE VERSION
VTSVNT==:.-VTSVN ;NO. OF WORDS IN STRING
DEFINE BSETSPD (R)<
IFE VMINOR,<
ASCIZ/SYSTEM:'R'-SETSPD.EXE/>
IFG VMINOR,<
DEFINE BSP (R1,LETT)<
IRPC LETT,<
IFE VMINOR+"A"-1-"'LETT'",<
ASCIZ /SYSTEM:'R1'LETT'-SETSPD.EXE/
STOPI>
>
>
BSP(\VMAJOR,"ABCDEFGHIJKLMNOPQRSTUVWXYZ")>
>
SETSPD::BSETSPD (\VMAJOR)
.ENDPS NRCOD
LOC 137 ;PUT IN STANDARD PLACE
SCVN
END