Trailing-Edge
-
PDP-10 Archives
-
BB-R598A-RM_1983
-
swskit-v3/nvt/nvttmp.mac
There is 1 other file named nvttmp.mac in the archive. Click here to see a list.
;<V-SOURCES>NVTTMP.MAC.3, 22-Aug-78 18:08:48, EDIT BY OPERATOR
SEARCH MONSYM,MACSYM
TITLE NVTTMP
SALL
.REQUIRE SYS:MACREL
MAXFRK==4
T1==1
T2==2
T3==3
T4==4
CX==16
P==17
SAVAC: BLOCK 4
DEVNAM: BLOCK 2 ;FOR BUILDING PTY NAMES
PTYJFN: BLOCK 1 ;THE JFN OF THE PTY
TTYJFN: BLOCK 1 ;TTY DESIGNATOR
SRVJFN: BLOCK 1 ;THE JFN OF THE NETWORK CONNECTION
SRVSIZ==10 ;SIZE OF SERVER BUFFER
SRVINP: BLOCK SRVSIZ ;HOLDS INPUT CHARACTERS
SRVOSZ==24 ;OUTPUT BUFFER SIZE
MAXOUT==SRVOSZ*5
OUTPUT: BLOCK 1 ;OUTPUT BUFFER POINTER
OUCNT: BLOCK 1
PC: BLOCK 1 ;THE PC
SRVOUP: BLOCK SRVOSZ ;HOLDS OUPTUT DATA
FORKS: BLOCK MAXFRK ;SAVE FORK I.D.S HERE
NPDL==40 ;SIZE OF PDL
PDL: BLOCK NPDL ;ALLOCATE THE STACK
RELOC 1000-140 ;START ON PAGE
LEVTAB: PC ;WHERE TO STASH THE PC
CHNTAB: 1,,GOTCI ;WHEN GET CONNECT
1,,GOTDAT ;GOT DATA
BEGIN: RESET ;CLEAN UP THE WORLD
MOVE T1,[SIXBIT /NVTTMP/]
SETNM ;SET OUR NAME
HRROI T1,[ASCIZ /SRV/] ;SEE IF NET EXISTS
STDEV ;BY CHECKING FOR SRV DEVICE
JRST [ SETOM T1 ;DOESN'T EXIST
LGOUT ;SO GO AWAY
JFCL
HALTF] ;EITHER WAY, GO AWAY
MOVSI T4,-MAXFRK ;MAX FORKS TO CREATE
FRKDO: SETZB T1,T2 ;GET A CLEAN FORK
CFORK ;CREATE A FORK
ERJMP WTFRK ;IF NO MORE, DONE
MOVEM T1,FORKS(T4) ;SAVE FORK HANDLE
HRLZ T2,T1 ;FORK HANDLE
HRRI T2,1 ;START AT PAGE 1
MOVE T1,[.FHSLF,,1] ;MAP THIS FORK TO IT
MOVEI T3,ENDPRG-1 ;LAST ADDRESS IN USE
LSH T3,-11 ;MAKE A PAGE ADDRESS
TLO T3,540000 ;MAKE PMAP ARG
PMAP ;DO MAP
HLRZ T1,T2 ;GET FORK HANDLE
MOVEI T2,START ;START ADDRESS
SFORK ;START IT UP
FRKLOP: AOBJN T4,FRKDO ;DO ALL OF THEM
WTFRK: MOVEI T1,.FHINF ;WAIT FOR ANY
WFORK ;""
; ..