22687 90020_Access Internals 90020 Access

22687-90020_AccessInternals 22687-90020_AccessInternals

User Manual: 22687-90020_AccessInternals

Open the PDF directly: View PDF PDF.
Page Count: 737

Download22687-90020_Access Internals 22687-90020 Access
Open PDF In BrowserView PDF
HP 2000
COAIFUTEn SY s Till~i

SOURCES AND

LISTI~GS

DCCl;1,:tl:TATION

HF PART NU1illER 226B7-90020

PREFACE
This manual is a guide to the sources and listings of the HP 2000
Computer System."

The source of the system can be used to make
I

modifications to the system; the listings and tilis manual can be
used to help understand the internal workings of the HP 2000

,

Computer System.
This manual is divided into three parts.

Part I js ·a description

of the physical format of the magnetic tapes (22703-l000l-Listing,
22703-l0002-Sources, 22703-l1001-Listings on 1600 bpi magnetic
tape, and 22703-l1002-Sources on 1600 bpi magnetic tapes) and a
description of the BASIC program supplied to extract portions
of the listings.

Part II is the inLernal maintenance specifica-

tions for the system processor.

It includes details on the oper-

ation of the system master program, the system loaders, the BASIC
language processor, and the operating system.

Part III includes

details on the Input/Output Processor program and its configurator.

PART I
SOURCES AND

LIS'l'lNGS

SQuc.c:es
T~e

source listings are supplied as BASIC Formatted Files on e
se1ective dump tape of account Z10l.
Eac~ line Of source Is
stored In one ,strln9. The Files are:

APPROXIMATE NUMBER'
~a~E

OE_e~OC~s

S2A83

715

55155

725

57900

71~

57905

72~

SA5FH
SRSTLD
5C2A83
5CSIS5

228
2b

5C7900
5C790S

340

SCIl)
SCRn
5CRC
SCR5LD
5004
50110
0511C
05120
5012C
50130
SD13C
50140
5014C
502741
5D274C
50274£
50340
S034C
5043
5DSOCD
5051
SOS30

135
11
85
7
52

34b

344
344

11

120
12

107
10

70
10
68

115
27
27
13
214
b3

218
SSl
9

SD53C'

22~

5061

332

~OQULE

System processor loader wi t~ 2883 d t sc
driver
System processor loader wi tn 7905/2883
dl sc driver
Sistem processor loader wi tho 7900 dl sc
dr I ver
System processor loader ~.th 7905/7900
disc dr\var
A5FH (lOP mOdule)
Paper tape bootstrap loader
Conversion program For 2883 disc system
Conversion program For 7905/2883 disc·
system
Conversion program for 7900 disc system
Conversion program for 7905/7900 diSC
system
CIO (lOP module)
CRO (lOP module)
CRC (lOP module)
2100 Cross loader
0.04 (lOP mOdule)
0.110 (lOp module)
D.llC (lOP module)
O.l~O
(lOP module)
D.12C (lOP module)
D.IJO (lOP module)
D.l3C (lOP module)
0.140 (lOP module)
D.14C (lOP module)
0.2141 (lOP module)
D.2/4C (lOP module)
0.274E (lOP mOdule)
0.340 (lOP module)
0.34C (lOP module)
D.4~ (lOP mOdule)
D.SOCD (lOP mOdule'
0.51 (lOP modu I e)
O.SJO (lOP ~odule)
D~S3C
(lOP module)
0.61 (lOP mOdule)

i-I

A~PRO)(IMATl:.

L.E~Glt'

~8~t.

~ODWl.f::

62

5Dh2

200
29

SDb3
SDUMP
SHIO

UUM.., ( lOP mOdulI;')
MIO ( lOP r'lodule)
hLO ( loP mOtiUle)
hLC ( lOP mOdul~)
HMU ( lOP Mocule)

62

SHL'(J

14

SHLC

lHU

S~MO

C:;~

( lOP f"';Odule)
( lOP MOdule)

D.bt!
D. b:i

SM~O l·~

12

Ht-lllI-i

SHI-JO

14

.... ""1)

s .... ""c

1~1

c:.IC~~

c:',:)'-,

SIt)r

~q~

1~14-

SIf)IoJC

SLPO

11

SLj:J~

~~

CiLTO
SLTC

r.hh
~h

SMt::M .... Y

4-4-

S'-4N

1~

SMNk>IQ

.117

5~1I)(H

11

c;p~C

72

( I (IP

MI\J

C;P~O

~

4

'~Pu

S~~C

1~7

t-f~C

C:;S''t'NCi I
Co\c:: V "JJ ~

Cll4

It">
'7 -f~ t)

Tn~

~sse~nler

IS

sv~no~

t~hle

H~

foJrOCp.5sor

",~I"'I

r)l

~lfJO

SC

~vall~ble

oro~rCt""

t- t OCKS

~ss~mr:"Y

l;.,ncucHJ(;\.
""'~ SlJCOorteo
H~ ,jUl'tJ c;ysterns"
An

foor riP
from tne

H~

~ontrl~uteo

must

b~

tBK~n

1~t')I('

svste~s.
SD~ce

5t

14clfU

I!I!Ire dval

,jAO/~70

~o"ule)

w~rmst~rt

sourCE' cOde 'IS

~SSI?~t'1ler~

IHM

~y

~~h

AoorO)l1 mC!'te Tota I

( I n~

( r f'\P

''1<"'au I p)
~Y~'C1)
( IOIJ mOdule)
SV"J 1 H (I o~ mOdulf:o)
'rP'-1b~
( I C"P I"flOdule)

jl;)..,

SWS~I.d.,

Ie)

( InP mOC"lule)
twlt.J"~ I H
( 10"" ",ol'1ul~)
( 1 t)~ mOdulf')
~po
( IO~ mooulr)
~PC
( 101-1 I"\otiulp.)
f.-.Jv ( 1 OJ..' "..Odu.I p )

~~~o

S 1 ..1(., ....
c:, Tes;,

mOC1ul~)

MOr~u

Mt..JRCO

h~

SPPO

( r nP

~f:·'·.H~Y

1~3

SMN~CP

mO("llJl~)

LtlO ( J np rr.O~·I',J • p)
LPC ( I0P mOdule)
LTO ( I ('I~ mO("'lulf?)
LTC ( lOP f"!"IOdu'P)
~aster Pr ot:u" c!!!'P'I

H

S'-4C~~C;

(In~

( 1 ()!J '1"!Odule)
H~<':
( J o~ mOrlu'e)
J Cf( 1-1 ( lOP ""Odulil!')
InC ( I ()J:.' mOoul@)
Inpc ( lor' moou'e)

c~r~

€XIstS.

DOS ~nd

Ps~ecldl

1-2

Iv for

to

I ~br~ry

~ssure

the

fO~

us~

sufficient

syste~

oroc~ssor.

on

LlSIl~GS

The system so~t~are I *stfngs are supplied as BASIC form~tted
~t les on a selective' dump tape of account Zl02.
Each line of
the listing Is stored as a string •.. Tne first char~cter of.
each string Is actually a 11ne printer eTl COde which should be
written to the line pr'nter be~ore the line In order to .nsure
orooer spactnq on the outout 'istinq •
. The orogram LISTER. has been sUDol led to prOduce I istings for the
user In the proper format.
To use this program, log on to
account Zl02. Then:
EXE-L ISlER
LISTE~

Enter name o~ mOdule to be listed i XXXXXX
Enter I isting destination (Hit  for terminal) YYY
DONE ,

xxxxxx Is the name 0'+ the mOdule to be listed, )(XX is the file
desjqnator 0+ the I *stlnq device.
The

~

i

I es ar e:
APP~OXIMATE

NUMe£R

OE_eLOC~S

1429
L'iISS

1497

L7QOO

1429

L790S

1454

LASFh
LBSTLD
LC2883
LCSISS

79b
795

LC7900
LC7905

798
797

LCIC
LCRO
LCRC
LCQSLD

12b
12

LD04

191
56

77
13
42

~OQULE

System processor loader with 2883 disc
dr i ver
System processor loader with 790S/2d83
disc driver
System processor loader with 7900 dl sc
driver
System orocessor loader wi th 7905/7905
d.sc driver
ASFH ( lOP module)
RSTLD (lOP module)
Conversion Program for 2883 Of sc. System
Conversion Program for 790b/2b83 01 sc
.SyS tem
conversion Program for 1900 Oi sc System
Conversion Pro.qram for 7905/7900 .D i sc
System
CIO (lOP mOdule)
CRO (lOP mOdule)
CRe ( lOP mOdule)
2100 Cr os s Loader
D.04 ( lOP module)
"1-3

tl~PROX I~'ATt.

bla~E

LOllu
LOllel
.LI11?O
LD12C
L0130
'- 0 13C
Ln140
Lr·14C
LD?14l
tD274C
LD?74 ...·
LD:it.,.l)

LE~C2It;j
to;

115
11
~2
~

72
f.j

"9
<13
17

14

~OOULt:.

mOdule)
I'lOdule)
1"I0dule)
MOdulp.)
u.lc'C
mOdule)
U.13u
D.13C (lOP I"'\odule)
U. J.4(1 ( InloJ mOdulp.)
U. 14r; ( lot-J mOc1ulp.)
LJ.2741 ( J Of.' r"'Iodule)
( J np MOc1UIf1)
U.~74C
L>.~-/4F
( I Of..> mOc1ulp.)
lJ. ,:,,"- (J ( In~ mOriule)
U.,j"c ( I f)f.J ITIOoul p )
L> • .:.. .i ( J OP "'OOll Ie)
0.110

L>.llC
U.l.?O

(lOP
( lOP
( lOP
( lOP
( lOP

Lf')~4C

11
1 ';0

L04.1
L050r::n

221

L; • ~) 0 C I~

d14
C)t?O
C)r7

"IOOU I e)
lie ::»1 for 1 c, Dorts ( lOP MOrJU Ie)
for .i~ norts ( 10 .... mo,;u Ie)
U.~l
L). ':t 1 0 ( I ~~ f")(')dulp.)
U.":;C ( t n~ mOdlJ I£')

LD~OTioo\

LDC,1A
Ln~lH

6~

Ln~30

t".

LI)c;3C

1H4

l DI-.l

.jl~

L:),",~

bet

Ln,..~

172

Lnl.JM~

27

LI-iIocl'i
LHIOI"'i
LHLflCn
LHL 0 I ~
LHlCCiJ
LrlLCtH

~("
~4

14

L.... '.1 OCr)

1"'1~ I
16v
bf,

LH\~()T~

:;]

LHj.oIOlrl
LH""OCn

13
14
14

LH~OIk

Lrl~CCD

12~

LHh'Ct~

Id7

LICt\~

?-Sl
1

L J..:; TI=: k'
LIne

Llf')IJC

?~ :,
1004

U.~Gl~

( I f)P '"0 dlJ I (1)
( I Of-' mOoulp.)
l.;. t"1~ (r()~ mOdule)
l)\)Mi.l
( 1 (l ~ monule)
t"1tv for r.OC ( I ("I~ MOnu I (.)
hlO for IHM ( 10 P r."',0C1 u If»
r-tL 1I
for coe ( Tr,j;) ""otju I ~~)
HLf) ;'or T... ~. ( I ()?-- ~ooulp)
hLC +-or Ciie ( J nj.J MOC1U I p)
HLC for r ~~ tA, ( TnPJ mOr1ult:)
~ ('!..,

CuC

HII.=I;

;'or

I~M

(lOP

•. HMU

( J OP

rr"Od u I (.)

( I PP mOdule)
. H~II ~nr I H"': ( 1 tjp ""ot":ulf')
HL.,)I.I 4-or Cfl~ ( I ()~ "'Ooulf=')
""~ u for T ';r'" ( I () P i.lOC1lA I P)
H~C . f. or
cue ( TnP MoclJlp)
t"1~C
fo" I f, IV' ( 1 (lP mOeju Ie)
lCKh ( 1 ('1~ rrlodule)
f-rOC1,.~m
to O"'OdlJC:~ I 1St I no s
1 ('C ( I ()~) m('\("tul~)
1 ()tJC ( 1 ()P m("J"uI '=?)
LroJO. ( J nP ,.,onule)
LI-'C ( J ()~ mOdule)

LLTO

ioj

L TO

LLTC

d.i3

.L TC

l. ~C$J P(;
LM~~~Y

IhJ
37

LM"..

lhe;
f,7

MOr."'lJl~)

uf.'

U.t"t~

hC,

LMh'I.JCf)

(I

(J.,.,i

LLj.oIO
LLt-lC

11

( In~

mOdul~)

( I f'lP "'ooule)
r.-1i'1S t C'>r PrOQr~""
~,~t·.,~y
( I nf.J m.o~u 'E-)
fo.lN
( 1 ()~ !""IOClLllp)
~"·"I.oiC': u ( I () j.J mor.!u Ie) .

1-4

~at:1E

LMNRIF.I
LMLJXH
LPPO

LPPC
LPFotO
LRPO
LRPC
LSVNCD
LSVNIfi
LTA~H

LTSA
LWSPRG

I.Et:J{lII::t
101

65
10
&9
5
9

132

197
328
15
A257
84

~OQUL.E

MNRIH ( lOP mOdule)
( lOP mOdule)
( lOP mOdule)
( lOP mOdule)
( lOP mOdule)
( lOP "'0 du Ie) .
kPC
( lOP mOdule)
SVNCO (lOP mOdule)
SVNIP- ( lOP mOdule)
Tf:SGH
(lOP modu I e)
System processor
wa,..", sta,..t proqram
MUXH
PPO
PPC
PRO
RPO

Aooro)(imate Total 24987 Disc blocks.

1-5

PART II
INTERNAL MAINTENANCE
SPECIFICATIONS

TABLE OF CONTENTS

.... ..... .... .
.. ·...... . • .1-2
............ ...... ·.... •·.. 1-2
·.. ·. ..... · ..• ·1-3

INTRODUCTION •••••••••••••••
Hardware Configuration ....................... .
Memory Map· ••• ·••••••••••••••••••••••

MASTER PROGRAM
Introduction.
..
•
Conventions for use of Id ·Records ••
I/O Configura tor Methodology.
Id Records ••••••••• ; •••••
..
Master Tape ••••••••••••••••••
Patching the Master Tape •••••
Loading the Master Program on a 2100 based system •••

.. ... .. .... ....... ·. ·.....·.·. ..·..... • ••.2-1
2-2
·...
·..
·
..
.2-3
·.... ·..
·.
2-5.
·. ·. ..
·. .. ·...··..•••
• •• 2-6
... ·........ . ·..
.2-7

LOADERS
Loaders •••••••••••••••••
General Description.
System Update.· ••••••
Mag Tape Reload.
Disc Re'load •••••
Access-1A Upgrade.
Disc Bootstrap •••••.•••
• •••
Sleep and Hibernate.
System.and Feature Level Codes ••••••
Patch Date Codes ••••••••••••••
Selective LOAD/DUMP/RESTORE.
Loader Routines ••••••••••••••••••••
Warm Start Program ••
System Generation.
Disc Reload •••••
Mag Tape Reload •••••••••
System Update •••••
Disc Organization ••
Disc Error Routines.
Cold Dump Program •••••
Magnetic Tape Format ••
Sleep and Hibernate Tape Formats.
Dump Tape Fomia t •••••••••••••••••••••

·. ..2-8

......... . ..
·.... • ••••• .3-1
3-2
·
..
·
.
·
.
. . . . . . . . . . . • . . . . 3-3
·
.....
...
·.... •.••.•.3-3
·.
3-4
·...
.3-4
·
..
·.
.3-5
·.....
·.·..........
·. .
... ·..... ..3-5
·... · ...•........•• ..3-5
3-7
. •..•. . 3-7
.
·.. ...... ·......
.... · ...• •••••• .3-11
3-17
·
....
·
.
..... ..... ... ·. .. ·. • ••••
3-21
• •• 3-22
.3-23
·.....
·..... . . • .3-25
·.. ··.... ·. ...·... ..
.3-26
.
.
..3-39
....
·
.....
.
·.
..3-44
··....
• .3-'49
·....... .
..
.3-50
"

i.

~

• •• 3-52

OPERATING SYSTEM
Scheduling •••••
,
Communications.
System Modules.
Disc Driver ••
System Console Driver~ ••
Processor ,to Processor ••••••••
Processor Interconnect •••
System processor to I/O processor.
I/O processor to System processor.
Power F ai lure and Reco'Tery ••
System Tables ••
Directory ••
Direc ••••
Id Table •••
Idee ••••••
Swap Areas Table.
Ad t ..' ............ .
Locked Blocks Table ••
Fuss •••••
Comtab1e •••••••
Loggr •••••••••••••
Teletype Table •.
Equipment Table.
Master Segment Table.
Muerto ••••••••••••••••
Moving Head Disc Table •.
Device Table •••••••••••

.

.. '.
.. .'. '. ... ..
.'.
'

'

..

..

BASIC INTERPRETER
Notes On Basic.
Syntax ••••••
Phase II ••••
Compilation ••
Va1ue'Tab1e ••
Decompi1ation •••
PRNST •••••
Execution •••••••••
Main Loop •••.•
Statement Execution ••
LET ••
IF ••••
GOTO •••
GOSUB.
FOR ••••
NEXT ••
RETURN.
INPUT ..••

...

..... ....

·..

..

. ....

ii

..4-13
• •• 4-26
..4-32
.4-46

• •• 4-47
.4-49
.4-50
.4-50
..4-52
• •• 4-52
.4-52
•• 4-53
..4-55
• •••• 4-61
• ••••• 4-62
..4-69
• •• 4-73
• •••• 4-74

·.
..

..4~10

..4-11

·.•••.4-71
4-72

•••

,

.4-1
• •• 4-5
.4-6
.4-6
· ... . 4-8

·,
·..
.. .

.5-1
. .... . 5-2

• .5-2
• .5··2
.5-3
• .5-4
.5-4
.. •• 5-5
'•• 5-5
• .5-5
.5-5
..5-5
.5-6
'•• 5-6
.5-6
'.. 5-6
.5-7
• .5-7

BASIC INTERPRETER (Continu~d)
ENTER •••
READ •••
LINPUT.
PRINT ••
.....
PRINT USJ:NG.
RESTORE.
MAT ....
".
END •••
CHAIN.
ASSIGN ••••
SYSTEM ••
CONVERT.
LOCK/UNLOCK.
CREATE ••
PURGE ••••
ADVANCE ••
·UPDATE •••••••••
IMAGE, COM, DIM, DEF, DATA, FILES, REM.
Formatter •••••••••
Error Routines •• ~
BASIC Core Maps •.
Syntax •••••••
Compilation.
Value Storage Allocation ••
Execution •••••••••••
Internal Representation ••
Variable Operands.
Constant Operands •••
BASIC Operators ••••••
BASIC Statement Types.
Pre-defined Function Table:
Extended String Representation.
Examples ••
Symbol Table •••••••••
Files ••••••••••••••••
File Table Entry (ASCII files)
File Table Entry (BASIC files)
File Table •••••••
File Contents •••••••••
BASIC Formatted Files ••
Update Last Changed Date Routine ••
Run Time Stacks ••
Return Stack ••••••••••••
For Stack ••••••••••••••
Operator/Operand Stack.
Language Processor Tables ••
Flow Charts
Syntax ••••• '••.
Compilation ••••
Decompi1ation.
PRNST ..
SSYMT.

.5-9
.5-9
..5-9
.5-10
.5-11
.5-11
.5-11
.5-13
• ••• 5-13
.5-14
• .5-14
.5-15
..5-15
•••• 5-16
..5-17
• ••••• 5-17
..5-17
..5-17
..5-18

..........
.... .. ...... ·.. .". '. '.
.'. '. .. .'. '.
.. .... '.
· .. '.". '. ..
.
.
'.. '...'. '.u.".. ".
... .. .
'

'

'

'

'

.
... ... .........
·.
...... ·.........
. ... ·. ....
., ...
'

~

~

....

·.. ....

..
~

... ...
·.

. .. .. ....

·.

•

. ...

iii

.5~19

., ..

·..

•• 5-21
• .5-21
..5-23
..5-24
•• 5-26
.5-28
.5-28
.5-29
..5-31
.5-32
.5-33
.5-34
•• 5-35
·5~38

.5-39
••• 5-39
.5-40
•• 5-41
.5-41
.5-42
.5-46
.5-47
••• 5-47
.5-48"

e •••••••••••••

5-49

.5-50
.1

.1 thru 4
.1
· .1 thru 2

.1

BASIC INTERPRETER (Continued)
ASYMT ••
RSTPT ••
ALCOM.
VALUE.
Execution.
LIBRARY OVERLAY REGION.
User Overlays ••
Append.
Assign.
Bye •••••
Catalog.
Chain ••
Csave ••••
Delete.
Device ••
Directory.
Echo ••••
Dump ••••••••
Execute •••
File Command.
Files Statement.
Get •••
Hello ••
Purge ••••••••
Length.
Library ••
Group •••
List/Punch.
Load •.••
Message.
Name •••••
Create •••
Unrestrict ••
Protect •••••
Lock/Unlock.
Private ••
SWA., •••

.1
.1
..1
.1 thru 5
.1 thru 2
.6-1

e. • • •

......

. ..

..

MW'A ••••••

Pause ••••
Renumber ••
Report •••••
Save •••••
Supersave ••
Tape Mode Clean-up ••
Time ••••••••••
Console Overlays.
Announce.
Assign ••
Awake •.•
Banner ••
Bestow ••

"

.' .

iv

.

.6-2
..6-2
.6-2
•• 6-3
..6-4
.6-5
••• 6-6
.6-7
• •• 6-7
.6-8
• .... 6-10
... :6-10
..6-14
.. •• 6-15
.6-17
.6-18
..6-20
.6-21
.6-22
. .6-22
.6-22
• •• 6-23
.6-24
•• 6-26
.6-28
..6-28
• •• 6-29
.6-29
.6-30
.6-30
.6-30
.6-31
.6-32
• •• 6-32
.6-34
.6-35
• •• 6-37
..6-41
..6-42
.6-42
..6-42
• ••• 6-43
..6-44
..6-44
..6-45

LIBRARY OVERLAY REGION (Continued)
Break ••••
Changeid.
Copy •••••
Hibernate ••
Divice ••••
Directory.
Dump •••••••
Disconnect.
Kii1id •••
M1oek ••••
Mun1ock •••
Newid ••••
Supernew.
Phones.
Purge ••
Report ••
Reset •••••
Roster ...
RJE ••••
Sleep •••
..

...
'

....

Status ••

....

. . . ..

v

. ..

· ..

.6-45
..6-46
.6;..47
.6;..48
.6'-48
•••
• •• 6-49
.6-50,
.6-50
• ••••• ·.6-51
.6-52
.6-52
• •• 6-52.
• 6-53
.6-53
.6-53
.6-54
•••••• 6-56
• ••••• 6-56
• ••• 6-56
.6-57
..6-58

.. .'. .. .....
.. . ...
....
...
·.
..
.......
.
,

....... .

....

..

INTRODUCTION
The ~OOO System consists o~ severat
seQarate programs wh.Ch are run on two processors. The 1/0
Processor Pro~ram
resQonSlble for handling ~tl multiplexed
1/0 ~rom user termlnats. f~r I/O· to optional non-shar~able
dev.ces and for remote system data· communications.
.
The system conta.ns the BASIC interQreter. ex.cut've~ and library
routines and runs on the main processor. The Loader, Which also
runs on the main processor,
responsible for generating
'nttial systems, backing uP the system on mag tape, reloading
the entire system and user library, and selectively reloading or
backing UP users' ',brarles. The Loader also contains the cold
dump routine whiCh isa used to dump the contents of core from
both processors, as wei t as selected portions of the disc, to mag
tape.

.S

.S

Hardware Conf I gurat ion
I.

SYST£M

PROCES~O~

.. -..... -.. ---~------ ..
10-11 Processor Interconnect
12 System console
13 Time base generator

14 FIrst diSC
11-20 Mag tape (can OCCUPy·any unused select codes)

II.

I/O

PROC~SSOH

.. -- ....
A.

-_ ..

,..

..... -

See the operator's guide (22687-90005) and I/O
processor I~S for details.

1-1

~

';V

MULTIPLEXOR

I

I

t,
I

/
I

INTERCONNErR
1£

......

I

I/O
;PROCESSOR

I

It:

1/

I

SYSTEM
PROCESSOR

I
I\.)

MODEMS
DISC
STORAGE

~

~

PHONE
LINES

-

AUTO
DISCONNEC···

. DIAGRAM OF S:'

;M HARDWARE
/

DISC

-

\ STORAGE

\

APPROXIMATE:.
OCTAL
LOCATION
0

Interrupt linkage ana untnittaltzed system
variables

100

Equipment tabte

200

Constants and system variaoles

User

1231

Registers saved by clock

LIBUS

1235

User swap area and system library work area
(10240 wordS ~rom cOOO to 25777)

24000

For disc-resident salvage routtnes

26000

DiSC

27700

Device table

30401

IDEC

30451

DIRe:C

31571

ZOISC (disc driver driver)

31605

BASIC

54600

Formatter

57414

Power

60000

System conSOle driver

b0447

Teletype tables

62641

I/O processor communication drivers

64000

Magnetic tape driver

65417

SYstem

70000

Scheduler

71200

SWAPR

driver

~al I/~estart

~al

routines

lure. retry, and salvage routines

1-3

L I I:H-'" A

table

71&10

Comm~nd

72242

System

7~UUO

System I
'Nor'dS)

.,., 0 00

Cold oump

libr~ry
ibr~ry

1-4

subroutines
proyrams swap

dre~

(~l~

I•

I NT~ODuCT ION

M~ster PrOQram (M.P.)
supervtsps the qeneratlon or reconfiourt'3tion" of Access Systems invoklnQ the desired con~lgurator
(loP confiqur~tor or TSH SYstem ~Oader) and providing them Njt~
uti I ity services. The M.P. Is hOotstrapoed into the System
Procp.ssor (SP) memory Initially from the Master TdPe and thereafte~remains reSident unti I
loadlnq of the SP program. Since It
Co"tains drivers for t~e system console and magnetic ta~e unit,
the ~.P. IS stored onto the disc along with the T58 System Loader
so t~"t it can be recal Ip.o ~or servlcp. during system shutdo~n.
T~e

Intended to be co-resident with the M.P. must not al"ter
the following areas of memory durinQ their execution:

Proqr~ms

2-7:

30

un -"'7 (~f:

2000(~)-3777(R)

:

MAGSC:

Ioentlcal with th~ vatues used by the TS8
System Loaders and the TS~ System Progra~
(except that the latter ChangeS location 4 to
enable powerfall reCOVery).
M.P. temporaries and I inkaqe locations.
~ontalns th~ M.P. code and system console
buffer.
contdins thP"magnetic tape unit select code and
System console type. This corr"espondS in
location to part of tne SP crogram'S equipment
tdble and will be In the range lOO(b)-177(8).

Add it I ona I I y. a Cd I I to the • find -' d' rout i ne (..158 758. I) w i ~ I
use d buffer orlgined at 300(8). potential ty extending to 477(8).
Complete safety c~n be ~ssurp.rl bv uslnq only locations
lO(A)-27(A). lOOO(b)-1/77(~), and ~OOO(8)-77b77(8).
Po orooram
is inVOke(1

loaoed in response to tne "LOAD WHICH MODULE?" ouestlon
by ~ ..JSIj 4UOOf.'. SuCh a oroqram can returncontro. to
the M.P. after completion with a ~MP 4000~,I. Certain errors
detpcted by the M.P. wi t I cause It to rewind tne Master Taoe and
restart Itsel4= with the "LOAD wHICH MODULE.?" Question.
The fol lowino services
1.
2.

3•

~rp.

crovlded by the M.P.:

M~qnptic tape unit rlriver
(see' Isting for cal I Inq seQuences)
-tnvokpd bY a ..JSd 77~.I.
system console orlver (see I istino for c~1 I In9 seQuences)i~voked bv a ..Jse 7b~.I.
• Fin aid r" e cor o. 0 n Mft S t e r T'" e e - i n v 0 K e 0 0 y a ..J 5 fj 75 B • I
with tne io number of the deSired recoro in (AO and zero in
p.:q _
(A -1 in (El) is used under special circumstances oy the
In~ conflqurator only).
MOdules should assume that only a

~-l

4 •

sir" C I e S Ii? cup. n t r ~ I ;:) ~ SIS.... ; I I .., P. mn d r" t /"'t r () u I'J "" the Mr3 S t eo r ,~ 0 I? •
' I.' E' ~ {) a CI r t a r (,;' c '- r ,."
- i n v o·q. . d by (Ii ...I h /4 r:; • I * r t P"\ c=J b u f fer
':''''O'''~:SS
tn (r-').
"I"'~ '''''.'''. Io' i II dp.lrve'" thP. next record fro",
tf"\'? ~·\~stpr
T~oe 1d' rt~corc:l~ ,1rp. riF.:'leterj fro", th~ strea" of
rpcordS ~rl Ivproc.
T~ls routlr"e ~r~suocoses ~dJust~~nt
of
t ..... · rr:bOnl?tlC tdPt,: ny somp orqviOll.~ rnvoc:r=ttion of 'tind in
r f" C'" 0 r C'I , •
T r. f ~ r ceo r .:~ ~ t I" lJ c; r en ri Cl reo res u"" e r.:1 t 0 h a v e bee n
n~npr~t~~ Oy
~n h~ A5s~mcler
~n~
thUS to oe b4 or fewer Nords
in I~nnth~
uoon r"turn (A) ""ol~s thp r~corrl 'enoth;n
npoct IV~ \l'lor'.1S or IS 7corC') I" rin f.'nd-nf-f I Ie occurred (the
r I') uti r', ~ C" I.J to", " t r c (:, I I y .~ A C K S 0 ~ C P. 5 0 V e r t n P. F. () F. suo S P. 0 uPon t
r...:a I 1 5 .".' i l l ~ I~ r u r r: «(l) 1.1 U n t I I • fin d i ('] r f· cor d " I SUS Po r1
t:,:"'
c' (,. S i t ion t ~ ( t Col L"'I f.' t () ,.:. n ? t h d r ~ i I (. ) •
C n e C K S U:'Tl S f c r bot h

c:

=

~

rr.ol('jc~t~r'le

.~rlc,

. . . ,.. r c"
L C C ,:0 t

.~

'N ("\

r c

~

I/o.

I 0

r

~

r I I

., .1 t ' n (,)
t c r H n c ~ Cl

p"\

')":'H:,r~tlon

h.

~re

cr"If:c-t?·

,~It("r
I t oS nf'srrf.'o.
frc.Hl1 .:::" 'rE?~d Mara record' req~est (...ISo /"tj"l) ..
''''c-r.-t ior' Il~ N' II contr.'.n fA COOy 0+ the r,uffer address
""oollf.:n In ('-\) lvtl"'\1'l cc-Ile,..
c:;ince thIS NOrd IS reset
lNith F.'rCh C~JII, r~lC)f:lU'A'S c~n fIIlte'" I t (.ter axa!'l'lPle. usp It "3S
~n Axtrac:tlon D0lnter.
A~Vdnr:lna
It ~ft~r 10~~lnq e~Ch word

t .... p

C'

f

r

t'~ cor

r:~r'

r f' ("" Q

£:)

S t r r t:: t (=I .... r' (> r'
rI)o IJ t ,.. f' Cl f ("I r
str~tpQv.

f.

I I t'

1)

+I

r,., ,.. (" rj ( " ; ) .

( ..J ~ I.,

r: •

( r:> r v n t

.",-){ I "HJ""

frp.~IY

rf'tllr~

Atter

TJ •

A•

e:n<;alut(:l r'~("~rds
t P"\ 0 C,),.. I'j c- ('. S S •

r' l

Qftpr return frcm ~n .nout rp.ou~st olrr.cted to t~e syste~
c()nS("Ile. loc..·...,t Ion If!t~ .\At; II cnnt~ln "., chcarr-!cter oOinter to
t I'" (? r (' S c· c '"' ~ P f) t r i ri'J (I) t 0 .r ~ c: h c=- ,.. ..:. C t p r S t 0 I I ,,} wen 0 y ;,
<: c:'i r r • ~ C f' - r P. t ' .. '" r' j •
.:.:. Inc f' t his IN 0 r., I S r f+ S P. t
Ii i the ~ c h c::=t I I ..
"""'''''ule~

'I.

!"") ;.)

p

..,

n C .'

t0

t'l r ':'1 c)

:~

t~Plr

r\ I I I t . ,

IJ 1 I

~

C nlJ

II ~ •'\

I

t' ; (') n :
'"' I t

,''; 1 S C

I"

Ic

fit..;.

tl)r

'9

rev

~

t h 'S

!oJ ~

cor r- ~

Of

n Io?'

flJtlJr~

C

c.=-' I t o rOll t i
InC" ,'n ; 0 n •

S

(:,JrVf"nt 10nS

tunctlO~lno
I,~ ::i

er

~

OlJt I I
t~r

n(~~,

h~rt'?

~~st~r

C ('l n SIS t

P'r'\

r'I e

r'ire

'f

I nd

i

0

not

co~.~~uraticn

too" r 0 a c ....

'#II

i t h

cr.f""Itlnc~nCles.

t

t t ~ p , , ~ c:; t p r ~ r ':' ~J r c:- rn an ':1 t nee n n f ; d u,.. eo
'.1\ 'i "" ('I U 1 . 1 t""I .'-=! V P. t .... f' f 0 I J. 0 oN j n q tor mti t:
F i ,;~ i 0 r e c "r -!.
(i n P. ,., r
;:j 0 r r
I"j ~ t e.
c,.. 0 I J t:'I S (-'1\ I I ~ n S () I ute 0 r d I I
(~ .. C f.:'\ .j

f I I '" S

1 (IP or n "'l r'
r)

i)

tl"'l"'1

r

~)( I

IT'

•

t (: r

I .:"1" ".:.

tut

for

C")

~ t·

r

~

i~ ,r,

Inc,;.:: t

~ I

C' I:'

C': )

I- n,...

C'l )

~'f""I0-~;" - t l

I

~~

r

~

I 1') •
cor 'i •
I p :;'''r

to(.

2-2

2)

l~e

a)
~)

c)
A.

tape form~t (reCOmmended)
Mas t e rid r e cor d (i d n u'm b er i sO).
o~e or more data oroups
In ~scending Id number order,
(bot~absolute and reloc~table data groups c~n be
p~esent on the patch taee).
Ena id record ( i d number must be ~S535 =177777(8».

~~tCh

1)

2)
3)

c.

configured lOP program FI Ie must have the format:
File 10 recoro (td number is bSOOO(lO».
o~e or more date records
In a format suJtable for
transmission to the lOP's protected' loader or
no recordS if no confiqured lOP program exist~ on
the tape.
End-of-fi Ie m~rk.

DatCi oroup format
1)
Group io record (hit 15 of info word = 1 if NAM
record fol lows. U otherwise).
2)
None or more rlRta records.
If the data group is
r~locatab'e.
the recordS from one complete program
unit beginninQ with the NAM recora and termtnatlng
with the ~NO record; if the data group is ~bsotute,
p.~Ch recorrl
is in tne standard aosolute btnery form.

Thp. use of id recordS for relocatable mOdules I s straightforward.
Th~ a')s~mbler outout 'for 'eaCh separately assembled proqram unit
is oreeeoeo by an 10 recorn, formino a data group. Such a group
Is ~ co~~lete suo~art of a patCh t~oe or ·is combined with otner
qroup~
into ~ fi Ie on tne ~aster Tace.

.S

The use of id recordS for absolute mOdules
somewnat ~rbttrary;
the numb~r and ulacement should be Chosen to facil It~te generation of correction recordS on a P~tck t~Pe.
ld recordS can oe
conveniently generateo as oart of the absolute dssemoiy by sltuatina them just crior to e~c~ ORG Osuedo-statement of the program
crocer (i.e •• Just oeforp. the ENU statement). Of course, e~ch
~rouc Of absolute reCOrdS on a catCh t~oe should be preceded oy
~n
irl record to indicate ~here they should oe merged during
Qen~ratlon of a new
(I.P.. p~tChed)
Master Tape.

III •

1/0

Confl9urator 4ethodo'OOy

To confiqure an TOP croaram:
1)
C:~I t 'find id' routine (..JSB -{:'8.1) with (B) U and (A)
Id
numher of stanoaro modules file (20UO(10».
2)
R~ad the file sequent ietl Iy by calls to 'read oata record7
(JSB 748.1 With (b) - buffer dddrpss) untl I the end-of-ft Ie
is reachPd «~U - 0 on rpturn).

=

?-3

i-Iosition tnr.' ~oster T~of' to tl""l€' oot,onal mOdules -File by a'"
J c:; H 7 "l F:h I IN i t h ( tj ) = CJ MnCl ( A v
0 U (j ( 1 () ) (i tj n u rn 0 e r 0 f
0ctio~~1
mOdules f, Ie).
'""ean the -File seovnnCialtv oy calls to 'rer!Jd t'r13ta record'
( ,l:-:i r, I .. H.. I wit h C t') = h U 4= f P. r n d C1 r ~ S s) u nt, l e i the r the
pnn-of-fi In is reeChPO «A) - 0 on return) or ai' desireo

1)

= :.;

k)

~Odutps

If

~

h~vC

been

rp.~c.

cC"nf, ourF'':J r:CCy cf

M~~tp.r

cont,nue

T~cp.

tl"\€'

~jth

10F-' oroor,=,'T'I is to oe wr i tten o~
steP ~ bPlnw.
nt"erwise oroceed

the
to

St(':lO 4.
'"' )
P ('I S i t i C'I n t n c ~, 0 s t e" r ,.:II t; f' t o t h P. Con f i 0 u r e ~ 1 ') P f i
bY a ..J S !;
7 ~ • I 'Ir i t n ~ U = - .1. ~ n r1 ( A ,J .;: b :, U U 0 ( 1 () ) (, ri n lJ rT'I t) e r 0 f
Ct:"lnf., . ,ur~(j I') ... + " ... ).
~)
";rit(.' th~ c:.)nfic:tur(;" J(,~ oroQr~,., usin,) o,rect calls to the
m ., (J n (, tic t ('! 0 I.) C'r i "~r
( ..J S .... , 7":( t 10 •
""" e f. 0 r e ~ t t Po ." 0 t , n 9 t 0
'v r I t f' (,' l!'t r:.... t'"1;; t ere c: (,; r ('f. c: h P. r. k: t h pen c- 0 f - t ,=, 0 e f' a q
(7 :i 8 • 1 ) •
I 4- ,t i s non - :': ( r c • 's S l J P a r~ ~ C k' f I I P. / for'll fj r d r e cor 0 r e Que s t
t fj ,. II r Q P t "" f'? + I I e AI r , t: t E?' ,.. ~ 0 f. !III r CC.C
b!lCKf;le

'e

eLf".. 1 "'1"1
•..JS h '1 -,"; • 1

OCT

for~~ra

on~

r~coro

reoupst ~ctior)
(oositlonlnq r0oupst)
thPse returns
will not ne tal'(en"

4

,.:pp

rhen i ss ~e "'! c~ I C"Qnos t 'C f.'t"'jd oroc~ed to s teo -, be low.
"':') t p. :
r 4= t h'~ C ",ecl< ; or e .",r i t e r i n<":l I s I'!larj~ by a stat us ca I
tn thp dr I Vf':r be tor"r.> o(')r fO~ no steo
tne COd i nt;l
the
"., .:" s t (' r Pre 0:"" ~:!"l
I I ~ I I 0 VI' rj I s r." 0 u'" tin 9 t '"' P. t doe d n ti r e "'0 u n tin Q
It.,. I t h
~ .,. r' t a r I ,",.") •
to r f' win a c; h 0 u I d t h en b e iss IJ edt 0 en~u",p.
t;:aOf.' IS et
lo..,·.,.nClnt.

of

'='.

w'

T)

'.II.'rltf' fin p.nn-ot-filf!' "'(=Irk
(thiS is to OP done ev~n i f thP
r-nCl-of-tAD(" .. Iolot IS spt) ano h(l'lCIofSpnCP. over i t .
(A) = ~
cnnvenip.nt Id nu~~~r (th~ id nu~ber Of the 10P con-Fiaurator'S
("Inn Id recor'j, presu"':l.=.blv !;I"f'1(lU). will 00 nicely) •

.. ~ )

0.( P

1)

t

II r f"\

~ositlon

1""".1
?)

~)

tv)...... '"

tnt;... t?

tne

With

t~on

(n)

t h

to

= -1

~

..J fvo """

tne
~r.r:I

'" () 0 U t-1

• I •

Con~ioura~

(,q

10P

= l'-\"')uOJ(lt)).

f' Ie by a JSd

Re~d tne .. , I E;' us, nr d, rect CPt I I S to the meqnet, c
tepp
rriver (~Sl- ·I(~~.L)." t\fter the en,..,-ot-file m~rK is r-ead.
nnCk'SPcice over i t .
J f no rr.H:oros were read, tnen no
conf,ourea lOr- oroqr~m E''(tst~ on thP. Mdst(llr TdPe: infor",
t 1"'1 P 00 er ~ t or •
~ruositlon t~e t~CA hv a JS~ l~H,I with (~U
-1 and
(Q)
-= i:. ccnvo"'t)nt ir:1 nUf'lt'ler (e.Q • • 1"14'1(10.) ~s In steo·$j

=

CitlOVP).

2-4

~eturn

4)

I V.

to

the M.P.

~ith

a

~MP

40008,1.

RF.CO~D~

Ie

An Id record i s exactly five wordS

long and has the

~o

I tow i ng

~orm:

Yoord
word
word
word
y.;crd

o:

1000d

1:

C'OOl~

2:

10 number
Info wor.i
Checloo,-,pnce of recoros in
t=I !? S ('I I u t p. (j i ,., ~ r ' I t O r "' ci t
( rHJ fI'll.-\ P ,. 0 f f1 e t n W 0 r C1 s. rn e ." () r y 0 r j Q in.
"1~t~ .... or~s. FIno Chec~sum).
Th£? 'VI.P. must be IO.::l<:~e·d fro,," mEilc
tAnn: t"'f'r~c=!ft'er I t f.JrOVI"'~s t"'~ t~ci I itl€"s tor loadine thE' CO".
t i ~ l Jr :7:1 t lor. moo U I 1;' 5 •
1 ~ E? I tit S t t; I €' i S I ri I tin I I v e ~n c t y e )( ceo t tor
t~r~
file' iC"'l reC(OH":-1.
It enn be overwrittp.n "'Itn n confiaured In""

orC'Jr.=tr." thrOllcr'\ rHI oCltl')n nf thn in.., conf,(Jurertor ..
Tna middle n
fi I~~ c:;rp th£" I')t-J cont ,r:ur~tor. InO proqr:::t" f'llo.:hJleS I Wdrmstart.
10''3·'''1''''''5, thr-> .oCCt:':i~ SystP.r,'\, ~nd t~~ fi Ie conversion mOdules.
E~c~ of
tf""se fi Ic~ COnsists nf ~ fi I~ i~ racord, bn~ or more
'jnt~ ,rOI.H·S.
an~, nn uc:\tloP"\~I. but rpcolTt'TIenop.a.
end td record.
A
d~l~ ~roun conSists ot ~ aroup
I~ r~cora fel lowed 0'1 a relocatabln ·."JrOlJt> (NAP.' r-f·corO t~rouon EN£) rE'corn). or sec~uence Ot
.=. ~ SOl tJ t f:) r" I n a r 'If tor mc4 t r ~ cor d s, or ~ nul I r P. cor d set (I. e •• a
arou~ recorn mdY
~~
ful lo~ed ~y ~not~pr 10 recorc or the fl ID'S
p.nCl-O~-" I Ie me-r.-<).
~ I I
I,., r(:'cordS h=-v() the same t ormat. the
~~~ti~ctlons
~~ove ~r~
tunctio~~I.
fpch ie recorc cont~jns a
un i v lJ ~ i n t r c ('> r (I d ) ~ hie", r'I u 5 t '" e Cl r e t=3 t e r t h ,.~ n t ~ E? i d 0 f the
p~v~i~~1

Iv orec8d,n9

i~

r~cord.

2-6

l~e

I

Oc~

t db 1 e

F i .1 e

Absolute Fi

F'i Ie id
Record

r I Ie Id

(,roup Id
Record

Group· id
Record

NAt-A
Recor d

Record

FIRST
l)C'tta Group

•
•
•
•
•

Record

•

•
•
•
•

Absolute
, Record

(,roue id
Recora

Group Id

E-ono

NAM

~ecord

Last
Oata Group

Aosolute
Record

•
•
•
•

•
•
•

•
•

•

~ecord

Absolute
Record

Eno Id
Record

End id
Record

End

EOF

VI.

ABSOLUTE

Record

kp.cord

~atchlnQ

'e

EOr

the Master Tape

Master Proqram does not support catching o~ modules'uslng
a oap~r tape containtnq catches. However, the Master Tape can
be rlirectly patChed in the fo' lowlnq manner.

Th~

2-7

ThA alb 4dster l~ce m~Y np ~erqen with ~ P~tCh taoe'cr~attnq ~
n e IN Nt ~ s t P. r T e p'e • "" s Sum i not h ~ t t n epa t c n, t" p e f 0 I low s the
conv~"tions
for id record~. the n~NIY created ~aster Taoe wi I I
cont~in the new PdtchCS.
Hence ~hen any mOdule is IOdrlen tne
o~tC~AS
~~vP atre~oy.~p.pn
incluned.
Note th~t the sOftw~re to
do this ~s not' part ot tne ACC~SS syste~ itself and the ~~ster
~roar~m c~n not ~e PdtC~~a as
I t does not cont~in an 10 record.

'it IS oeSlreo to use the "4~ster t-'roornrn on ~ ~l\JO baseo
for ~~~tever re~son: system rr~Sh. ch~n~inq lO~s. system
etc. the tot IONlno prccPdur~ shOulrl be fOI lo~e~.

Wh~ne-v€"
systr~

uo~~t~.

Thp. on)E'ctive IS to rEt,.,rl th~ r1aster ~rO·.lrnrn .ro'1" lldO tace uSinq
the ~~Q t~ce haotstra~ ~ontH.n~d on o~c~r t~oe.
Tnis oootstrao
must ~e cross-loddCd from the Io~ to the system orocessor usinq
th~ ACC~~S cross loeoer i.nC9 thp system 6rocpssor hdS no Dnotor e.,d Ar •
The cross

from sceclal ACC~~S ~asic ~Inery
systpm orocessor. the In~ must oe
ctOD~p.r(~ wit'"' t~R crossto~orr.
noviouslv t~e !O~ must be
relo~opn prior
to r~lo~olno tn~ svste~ orocessor.
Lo~~~r.

T~~

IO~der

~ust

to

~once

he

rcl~~~

re~C.

t~~

teop oootstrep. oncp ~ross IO~de~ Into the syst~m
~~y oe used t~jcP.
once to lOAn or relOdd the lOP
cnc~
to rplOdO lne systP.~ procp~sor.
~~a

O~OCA~sor.
~nrl

clOu cross Loaner
Th~
th~

Cross L060cr

~~c~~s

r."'os~

LO~der/Pootstrap

In~'s

"':";r'I-"rv

p~ppr

t~~e

rpSidOS on tne first f i Ie o. the
Thp. Cross LOdoer IS re~d from
uSlnc t~e ~CCES~ protected rleSlc

bjn~ry
p~o~r

rc~~pr

t~pe.

LC"'r=:tder.

Onco tt'le cross Lo~oer n-:'iS hPp.n rf?"'ci into tl"\F" IOP's rnemor,y the
contents of the A a~d ~ r~aistcrs s~ould not be ~Itered ~s they
cont~in th~ splect COop~ of
t~e PdPer
t~DP re~der and the
interconn~ct Kit.
T~e ~CCt~~ orotected
lo~derconveniently sets these
rea.sters for tl"\e tross lo~~~r.
To cross

(or ~ny orcore m ). st~rt tne syste~
(rp60lnc frOM tne interconnect k i t ) .
on t~~ I0P. ol~cn tt'le prooram In the Dhotore~oer and set P = ~
r!lnd oress "run". ;;.. nolt 77,... on noth orocesors siqnals t9 successful cross lo~o.
Tne Lross Lo~~er ~~y oP restarted ~fter ~ h~tt
77r;:., "'v Simply DreSSlno "run" It it is dPsiren to cross lo~n
(i'nnt"'''''r· troorern.
IO~d

procpss~r.s

thA

Doctstr~n

protect~o

lo~~pr

2-8

clOO

~dq

fdPe 800tstrap

The mao taoe bootstrap ;s the second ~i Ie on the crossloader/'
bootstrap paper tape. The cross loader sendS tne bootstrap across
thP. int~rconnec~ kit to the system processor where it 6s read ~nd
pl~cerl
into memory byt the protected loader. The bootstr~p may
then be started at either 2000B or 4000B (2000B contains a Jump
to 4000~). However, i~ the bootstrap has just been used to
relo~~ or configure the lOP it mu~t be started at 40006 the
seconn time • . This ts reouired because th8'IOP conflqurator
destroys the JUMP at !ocation 20008.
once the execution of th~ bootstrap is started. the user Is
pro~Pted at the console for
the select COde of mag tape unit
V~I id v~lues are 14~ thru 26e. '

o.

Proqram is then read off of mag taoe and loaded into
At this point the taoe is' rewound, the select of the
mao taoe is placed into bits 6 thru 11 of the s~itch reoister
and the execution Of the ~nster Pro~rB~ begins.
Th~

~~s~er

me~ory.

2100 lOP easie 8inary Loader

The lOP on 2ioo based systems contain a spec'ial ACCESS version of
the orotected ~asic btnary Loader. Consult the Loader manual for
orocerlures for loading this loader.
This loader has two stnrtlno dddresses for eaCh of three possible
memory sizes. To reaa from the Interconnect Kit. start the
IO~rler at
location X7700.
To read. from the paper taoe reader
st~rt the loader at
location x77~O.
whprp. x=7 for a 34 K lOP
X=5 for a c4K
lop
X=3 ~or a 10K
lOP
In elth~r case. succeSsful execution, ts indtcated by a h~lt 77B.
If successful. the select codes of the photoreader and the
Interconnect Kit are left In the A and B reqisters respectively.
The~p reqister settings are required by the Cross Loader.

~9

2000 ACCESS LOADERS

There ~re f~ur loaders avai lable for 2000 ACCESS systems.
The soecific loader to be ~sed dependS on the tYPe of
discs on the system. All loaders are functional I y eauivalent.
Therp, is a uniQue ACCESS loader for each of the fot lowi9
combinations of discs:
7900 only
2883 only
7905 and 7,900
7905 and 2i;83
Note t~at ~I I other combinations of diSCS on a slng'e sYstem
Rre e~p1 icity disallowed. AI I SUbSeQuent references to
liLoarler" imp I y a I I four. un less exp I I c i .ty noted.
Th~ Loader
is a separate pro~ram which runs on the sYstem
comouter.
It is expl iCitly loaded by the operator to perform
the fol lowing functions:

1.

Generate a new system from maq

2.

UPdate an existing

t~pe.

disc-resid~nt

system

~rom

mag tape.

3.' Reloao

~

system from maqnetic tape.

4.

Q~IOad

a sYstem from disc ustnQ the master tape.

5.

t)parane an ACCESS lA SystE'm to an ACCE.SS ld system.

The IO~der is implicitly loaded when the operator requests any
of thp. foil-owing functions:
6. A normal load trom disc of a Slept or warmstarted system
usino the diSC bootstrao loader.
7.

~

sleep or hibernate.

In a~dltion. the loader contains thP. movinq head disc driver
for the system. the cOlo ou~o bootstrap, ann cold dumo orogrem.

3-1

GENERAL DESCRIPTION

Thf' t..o~der oen('r~tes the systefTI tal"'lles OY ~sio(ino the
COP"'fir:"uration ootion questions.
If no opttons ~re soeciflen
th~n
it sets the ~~T to dp.~au't values:
1 diSC on the system,
~ ~i~ctcry trecK oer eISC. ~n~ 1 ID trac~.
If tne system discs
~re nxclusivCly 7~UuS tnen thP. def~ult
is 1 directory tracK
oer --iisc.
~i~c~

The Locwed Hloc~s facie is
checKeo tor lanels.
to zeros only when the disc is not I~oeled for
ooerator.Wdnts It to h~ l~b€'leo.

~re

inlt'i~lized

and

t~p

TSh

Tnn ~isc sr"~ce clalmin,') strntP.t"Jy is nS follows:
First bui Id ai,
ADT's In corl"' frolT') LOCk~':l ~'I(')CkS Tat"des.
TP"'cr" cl.::lim disc scC'ce
for" t""e system. lrJ"ls. "UTs r.rtnd directory tracr(s uslno the AOTs
in cnre. ~hlCh ~rp. then written to nISC.
{The disc sP~ce
reouirf'o Cy ~ystE;.'m I Ibr·~ry rout Ines (~nn user' swao :treas are
cl~i~pc after
the farst SysteM I inrary routine is read in ceceuse
t~~t routine
IS a t~ble of th~ lenaths of al I the system I lorary
routines. ~ccoroln~ tc w~iCh the olsc SO~CD for the I inrary c~n
~~ co~puteo ana cta.men.
Thp. TnT. ~DT ane directory
Rn""l the s",ap trc.=tc~s dre 4?.
In

orrl~r

IS

u~~d

tr~cKS

are j2 contlouOUS olOCkS eeCh
r:>IOCKS eacn.

cOl"\tloUOlJS

to mtnlmize cyl Inoer S~!tcnino. thp. fot towing ~tQorithm
for cl~i~ln~ olse SD~ce for t~e systpm taoles ~nd swao

tr~cKS:

tnp next uie~r Of ~vall~ol~ ~ISC sOdce.
dC~S not cross p~YStcat
Cyl ind~r bOUndary.
take It.
I f i t Cr 0 S s. & s rJ'" y sic a Icy I I n ~ n r t", 0 un ".'l r:! r y the n t a k e
t h ~ n t3 l( t ~ ICC ~ 0" ~ v a i I r,:, nip. "1 S eSC;) ~ c ~ W 1"'1 i Ch S tar t s .
on Ohvsicdl cvl Incer hounosrv.

~.

Get

~.

If

(' •

it

Tnl~ sIl"'Iole ~lqOrltnfTI worKS for alt
Th~
AI or

R.

tyoes.

iOl"\alE' tor oeln, ~hl~ to olJ,'d ~II ~JT's In core at 14>00\'3
e ~ c han a t 0 h d vet n em r e'" a in,., ~ 1'1'10 r y -r psi a P. n t wh i I e c I ~ i 'TI i n Q
!;Odce IS as fOllOws:

r~t

·1 ~

dl~r.

A.

/diSr.

~~C~

AOT

lona
IN or t:'I s

C~SA

(:0\

i~

OUI It fro~ Lock~~ ~Ioc~s
woros) c~nt-jnino at ~cst
",or 0 S len try) •

T.... cre-forE' er:.cl"'l Inltl~1
wordS (3 v-oros/entrv).

AIH

T~rIO
12~

~hich is i oloCk
entries. or 3d7

hnS at most IcY pntries. or jt;7

3-2

c.

cla'mina space for the System segments, the number 0+
not i ncr ec!)se because they do not have to
start 6n cyl ;ndar boundaries so that the ADT entries c!!re
either shortened Or removed. only claiming space for lOT,
AnT c!)nd dir,ctory tracks may cc!)use an increase of ADT entries
because they nave to meet the Cyl inoer boundary conditions.
The increase 0+ ADT entries is at most:
~I"\en

A,..,T entr i es 'I/.i t t

3(IOTs) + ~ (ADTs) + lOxd (directory tracks)
or 273 'Woros.

= 91

entries

D.

Hence ec!)ch ADT buffer needS at most 387 + 273 words = 660 (or
12248) wordS.

E.

PlckinQ a nice even nu~ber, mawe It 1400H wordS 'on~ each.
T~en the buffer.
lenQth .for 8 AOTs is 140008 which can eC!)si Iy
fit in memory $tartin~ at 320008.

The system Is re~d from maq tape and remains in"memory. After
tne first system. library routinp. i5 ,.eao, the system segments 1
and 2 occupyinq locations 32uOOb through 520008 are written out
to t~e disc so that thiS oortion of 'memory can be used for ADT
buffer when claiming disc space for system librc!)ry and swap
~re~s.
(The other system.segments are written out after the
COiv1f) .tab I e I s set uP.)
w~en at I the system binaries are read, the remainder of the
system is written to the diSC. Then the pre-boot processOr
nna final aisc bootstrap are written to each disc; the system
segments a~e restored in memory; the user swap areas are
initialized ana tne DATF.-TIME se~uence is entered. control
Is then transferred to TSB.

?

Syste~

UPdate

System UPdate uses only the system binarY lO~d section of the
load seQuence. HOwever instead of gener~ting the EQT. it
re~ds the EQT from rlisc.
It returns tne diSC soece occuoied
bv the original System I ibrary to AOT and cl~jms new disc
soace for the new I iorary in order to ~I tow exoansion of
syste~ I ibrary as wei I as Poss'ble savinq 0+ diSC space.
It
does not Change any diSC ere~ other th~n the system COde.
SAlecttve load ana dump Is processed before entering the
DATE-TIME se~uence.
.

Mag tape retoao rendS the EQT e,nd OIREC from the hibernate
or sleep tape rather than oelng initial ized. Also, before
t~e system is read.
IDTs and directory traCKS are read from
tnpe and distributed evenly on .disc.

r3-3

the sYstem h~s ~~en wrjtte~ to disc. tne user' jbrerY
Ie; $o~ded r::lnd stcre~ on disC dccordino to the alloc~tion'
oct Ion soecitled.
~fter

S~lective

LOAD/OU~~

seOue"ce.
It
LOed/Dumc Section.
TIM~

4.

is
is

oroc~ssed
describ~d

before enter.nq the DATF.further in the Selp.cttve

DISC ReloRds
are t~o procedures to reload a sv~tem ~rom disc.
Tne
i sex p I i CIt 'y I 0(9 C'H? d .i n t 0 IT' e 1"0 r y for 0 neD r oce d u r e
~n~
i~DI iCltly
loo~~~ for
tMP other.
T~n
latter wi I I OP.
p)(pldlned in Item he'
T~ere

, 0

a c'1f:' r

The ~~stpr T~pe must nO usp~.
If nCltM~r system generation
or Ma~ tape relu~a i~ soectfled. a disc relo~o is 'mol leo.
control is trans+er"'ed oirectlv to the section of the IO~(ier
Nhere it rpa~s the ~isc bootst,..ao end SST from bloCkS ~ ~nd
~.
After ChocKin,=" for vdlid conditions. it redds In the
system accOrding to SST. Then .It orocesses the configuration
o~tions. returns the 010 swao ~re~ to ADT. claims disc soece
for ne~ swap dreas. orocesses selective LOAu/OU~P commandS
~nd enters tha DATE-TI~E seauenc~.
If the syste~ (~S re~d
f,..Orrl diSC) is not in ~ 'slcpt' st~te. Wnrmst~rt may oe
:=-tterrlpted.
~.

ACCES~-lA

UOqrade •
...",

kno~s
th~t dur in'J ~ mF.tc] taoe rei oad
oe r~'odoin~ ~n ACCFSS-IA system.
If so. So&ci~1
prOCCSSlno )s reQ~I,..eo.
The fel lowlnq shoulo ha~a occured
o,..lor to ~ttemptln~ thP. relo~d.
1.
~pcenflqurc th~ svst~m oroc~s~or ~nn
IIO processor
n6rdware ~s reaUlr~rl.
Con + i our r:~ C:I n ~ c c p. s s 1 ~~ 1 10 Dr c c e s s 0 r •
(It "ust be
2.
r lJn", I nq • )
Th~

It

L("~AI>F.~

(I-IC(t:~~-Hq

~dv

r) urI n q
the 1TI.3 q t n (.J e ,.. flo t 0 C' O. ':I i s C sot her t t-\ and j s CO, mu s t
reconfiqureo uSIng
the' nISC commano.
Thp. 'iiffering system
IpvelcOdes are I~nored.
Aftp,.. the opportunity to oerForm
LnAD or DU~P commanrl~ the syste~ halts 17~. Instead of
~oinq throu~h th~ normal
~ate and time seQuence.
At this
Doint in tl~e~ the so~tware is IA (~s far ~s the syste"
o,..ocessor is concernP'd)~ ane the hare~~re and IO~ ~re l~.

Ih o,..der to I"stal I the IH softw~re. set p=~UOO~ and press
run.
The I~ master tnop should hp. tOMoeo ~n~ a system
ucnate speclFieo.
T~is COITIDI~t~s the u~orade to ACCESS-Ih.

3-4

The loader is entered impl'lCitly tnrou9h the bootstrap
oroceolJre:
A. The memory or ~OMrestdent disc loader reads In
sector O.off disC 0 Into memory starting ~t location
20558. enter ing t.,e pre-boot" processor.
~.

The pre-boot processor reads in the disC bootstr~p
SST ~rom bloCkS 1 and 2 of disc 0 Into core
starting at loc~tion 14~~OB end jumps into It.

~nd

c.
7.

The disc bootstrap ~hen reads In the system aCCOrding
to SST and the same seouence of events occurs as out~
I i np.d in Item 4.

Sleep or r.lbernate
~or a normal
sleep or hibernate. the loader is re~d Into
Memory accoro I ng to S'5T by tr;e Sy stem I I Crary rout I ne and
control is transferred to the loC,ltder.
It first COPies the
DIkECT and E(~T to d'SC c?\"nd then If DUMP was specl-fled. It
5 t C'r t s t he mag t ape dump or ocedur e.
I f RE.LO~D was spec 1ft ed.
d disc reload IS performed (see item 4). " If no option was
soecified. it just ndlts with 778
(SYSTEM SHUTDOWN).

T.,e SeQuence of aumoinq is as specified In the sleepl
hibernete tape fOrm~t section.
If sleep, the user files
du~ped are only those chanQed since the
last hibernate; If
nibern~te. at I user fi les ar~ dumped.
q.

System/Feature Level Codes

~~Ch system ~nd
10~der
is asse9ned a syste~ level code ununiQuely tdenti~yinQ tnat system (but not. in general. differp.nt versions). ~ach time ~ system is loaded, the 10~der
wi I I ensure that it is the correct one for that system.

A.

on Initial syste~ Qeneratlon or system UPdate the loader
wi I I verify that tne mag tape contains Its system level
COde.

R.

C.

on magnetic tape reload tne loader wi I I vertfy that the
set of tdP~S w~s qenerated by its system. The only except ion -. s an ACCESS-l A UPCH" ada (s ee item 5).
on diSC reloaas (bootstraps) the IOdder wi I I verify that
the system on tne disc paCkS- is its system.

3-5

If thr system is not ~cceot~ole In a~y of t~e aoove. the
loaoer wi I I or i nt ILLFGAL SYSTEM CODE. LOAD/DUMP
AAO~TED on the system consol~. enn termln~te
'o~dinq.
The system level
~~ course.
thiS Should never occur.
COdes assiqnea dre:
?OOOC
200ur
2UOOF
~OOO

200\)

(HIQn-SOe~~)

C:::O()U
31JOO

(ootion cuu/20~)
Cnetion ~lU/~l~)
Access k~ledse A
Access Relp.~se ~

ThP 'Vi=': I ues ~re i nceoenC"~'nt
I"'J0scr;bed oelow.

J..,(IO
~uOO

bOUO
o~

thP.

feature

I eve

I

cOdes

svStPM IS also ~ssioned a fp~turp level code identifvina the level of f~~turps It supoorts.

FACh

2000C

(Hi~h-Spe~d)

2UlJ

~000F

cnotlon

~uO/du~)

~uu

~OuOF

(O~tlon

~10/~1~)

2000 Access
2uOO AcC~SS

~p.lp.~se

A

~ tJ lJ
J.OUu

~elease

H

~OUu

The ~ssumotlon is th~t ~I I SyStPMS .~i I I be mauntained as
concp.ntric suns~tS. nut t~~ SChemp. is flexible enOUQ~ to
~~rooate tniS If necess~rv.
The featurp lever cOde is
used by the loaoer to p.nsure that d svst~m is not IO~ded
with a I ibrery ccnt~;nlnc oroar~ms wlt~ f~~tures it does
not suooort. when s~lectively. losoino oroqrans and files
fro~ m~onptlc
taues. If thA t~oes were oroduced by ~ SysteM
with a "'ianer feClture Ij::Ivel thp lo~C':er WI I , or'tnt:
TAFE
()t)C)(

~AY

VS

Cnt~T~ll' ,:~ . ., t r- I ~ c:; •
If i!!'n  IS pntpr-t=;". i t is pldCPci Into tne table - Cr.o I l i t !Icons truct('("1 ll> tc=tb I p l l .
I" < It.'> • < f'~ ~H" r." > I S P. n t e r fI' ('1: 5 C t t h ~ rl I r" e c tor yen t r' y • S
r pcovl'~r y + lou.
j..Ipw I n::1
t nO m,=it::l tat'"lP.
hlp':;':1 t 1"\0
I dtH'? I on IOf-!r.
'pvel Cact'.

~~~~

eve"t~

of

C'('ar-

1·r-~,t.Ov('>r-ytt

flr~t

In

e r try tor
J •

k •

If tl"\R
0t,.,pr ....

t n

f I I

Ch'.~CI'<,

t("'\

I f.

t h r:-

I. !-' t· :") IJ

,",eF-r"

c:;

t?~

In

t

UPdate
I.

ml.J != t

Ll'')T.

J.;l;rS

of-rCll"'\

th~

I"U~ r:. t'"!
unt, I

o•

W'" i

o•

\..> f? t9 ('i

t

r

~

fI

c.. f') 1/ t::. r

r e c c r-.,
tr"l('

PUP (16
I ~

""i

~

t

..=!

<.+ .... :I!rl<.·

t

~

,; ..,

I ,..

t~e

witn

nirp.ctory

,.. ( .•

r.

('0

v (\ r- po

cj.1

f I

~o

,.."J

to step ':l.
If not spt.

ISS ~ t

~o

r p t urn

onp. nt ;:;. tl''''':t~ to fInd the '.:1isc
·.... ltnOut r~r:"cvlna so~c:e foro,"" the

(" ••

..

,... t." 1

~~q,ns

r",SC

"iIE"

('ntry

alr-pc-tery

tr"\€
~ (:>

~hir.1"\

f·· •

,C'" r. f'~

tn&

ta

tor
Ar>T yt-'" t •

n •

rpcor~.

t

Ie:; not I n t '"" p (" i r- r- C t n r ''I
tnt-' "r- f!',C':ovpr y" t I fiC.:

~ntry

SPt.='Ice

r.

~

,SE;.
st(">rJ ,.,.

SD.-=j('(l

I.

did

f I ,., Cl

(';

for tl"'lis
I f.'? r f!' "1 •

tim e. fro,." In a \-:J

pet 0 r y t r

n :1'; I r. n n "

c~I I

1l11T.

3-8

COl c

to(

t:"~,

t 0

n A L;

t

fil~

~ ~.J (-?

WitI"'

~ 1"'\ (']

the

II'" I t P.

t 0

dis C

('] I Si C •

t (,)

,.. ~ rn 0 '1/ e

s0

~ C f"!'

of-

r

0 I"l

Q.

If there are more ft
w~se.

Tht1

re~.na

~nd

I~s

st~nd

to load.
by.

90

to step t.

other-

r.

Reao in one 10 track at ~ time. For each IU, read in
one dJrectory track at a ttme and compute the total
disc space USPa by that 10 ana UPdate tne lOT. enter
PLOt aqain.

s•

1ft he 1 () i s , n t .... e II can s t r u c tea I D t Bo tell, put t n e
fi Ie· into the directory and gO to step t;
ot"herwlse
to steD h.

sequence of. events for [JUMP t s :
a. San"e as ste~ ~ for LOAD/P":C;TO~E
SamE' as step n for LOAO/k'ESTQRE
b.
~c=tmp
as step c fer LOAL)/~I=:STORE
c.
Sane as step ("I for LOAf)/f,:(EST()~t.
o.
e. Same as step ~ ~ar LnA[\/~ESTO~E
Samf? as step f for LOAO/RE<;T()J.JE
f •
Q.

Reouest "ver I loy" oct ion.e

h.

~et

i.

write

J.

in one ~irectory track at a ti~e.
For eaCh
entrY. cheCk tne "recover lt tlag: if-set. read the
fi Ie from CISC one record at ~ time and write to
tape.
The first recoro.iS prece~ed by the directory
entry: the Inst record is fol loweo by an EOF mark.
If not c;et. cheCk tnl?> "con~tructec:1 10 taole": if tne
1D is in the tahle. cump thP. fi Ip to m~q taPe.

k.

uo tape
EO~

w~en

nl I

extr~

~p.win~

Ifl.

n.

write to mn9 tape.

~nd

mar~.

kea~

~n

I.

l~o~1

C .... ec~

the oirp.ctory
~Of

tne

m~r~.

are 90~e throuqh. write
tape '~Mef and EOF m~rK.

tr~CKS

~Inal

t~op..

verify finO.

Verify tdPe

~

Innpi

i~

not

w~nted

and

£o~

mMrK.

00 to steP o.

Peed in one dir~ctory track at a tiMe.
For eacn entry,
cneck tne tlrecovp.ry" f I dO: if set. re-3:i the f i I e one
recorn at d time from disc into buffer ~t 320008 and
rPRo from taoe ~nto oUffer at 5~OOO~. Verify the
contents ot r.h~se two buff~rs Nith pacn other.
If the
f I ~ q I S not set. C h e C K the It con s t rue ted I L) tab I e 18 and
.dO the same vC?rificntlon I f the I() is in the table.

3-9

c.

~pwj~n

~1.

Pr In t

tne
III)ot.. t:.

st~nn

hv.

II.

3-10

Th~S

section contains brief descriptions of some routines in the
arranged an alph~betical order.

'o~der.

BUMP

This short routine bumPs the pOinter to next AOT track in
the AOT buffer wnen al I AOT tracks are core reSident.
It ts" cal lee by CLAIM for settjnq UP pointers to searCh
next AUT track.
(See paraqraph on CLAIM).

COB

is cal led by SVSLB to claim disc sp~ce for
the system lab,..ary and swap tracKs.
It cal"ls F'SDAD to
find ~pace for I ibrarY whiCh can be allocated anywhere" On
any dj~c.
It"calls CLMSWfor cl~tming swap areas cecause
they etther start on PhYSical cylinoer oOundary or dO not
cross Physical CyCI 'nder boundaries.

CF'F'w

C~Fw

CKFC

CKF'C CheCKS for val id feature or patCh date COde. The
feature Coce on tape or ulSC Is conSidered Inval j~ if It
is gredter than the feature COde of the System. The lOP
patCh date COce Is conSidered inval id if it is greater
than the patCh date cOde of the 'Odder.
In these cases.
the"user may Choose whether" to take resoonslbi lities or
not; If not. then CKFC exists through P+2; otherwise exit"
to P+3.

CLAIM

ThiS routine finds a-piece of disc space from ADT. which
either starts on Physical cyl ineer bOUndary or does not
cross phYSical Cylinder boundary, thus takinq care of
minimizlnq the interrupts resulting from switching of
PhYSical eyl inders on both 1900 eisc and ~~a3 disc.

This~outine

converts the first 4 words of a directory entry (10
and NAME) into printable ASCII format in a specified
buffer.

The AOTs useo by this routine may be ei~her at I In core
buffer of 14000(H) wordS lonq Or on disc to oe reao in
one at a tame. The sucroutlne whjch uOdates the ADTs and
pointers i~ either BU~P or NUADT. The entry pOint Of the
appropriate suoroutine is passea to CLAIM In the word
CL~FL and CL~lM calls
It Indi,..ectly througn CL~FL.
CLMSW

CLMSw claims swap areas of 40 blockS each and saves the
diSC addresses In the table TRKTb wnlCh is written to
aisc. Before enterinq the DATE-TIME seQuence, the loader
uses T~KTB to initial ize the SWdP areas and TTV table.

OAC"

It converts a positive number of b digits from decimal to
ASCII ana puts into a j-word buffer, right justified with
leSd'ng zeros set to nul I c~aracters.

DISCL

ThiS routine provides the necessary environment fo~ the
moving heaa olSC driver and transfers inout/output/seek

3-11

requests to the actual driver.
In conjunction with the GMQ~D routi~e.' OISCl provides a
buffer tor olSe driver ~enerated error messages and
~rints any SUCM errors
that occur.
When certain diSc errors occur. OlSCZ cneCKS the disc
error .Iag L>St:.t-tZ.
1+ it is zero. it halts. otherwise it
gives control to the cal I ina olace throUqh eXit to p+~.
US~~F
is al~ays cleareo before DISCZ exits.
The D~~N routine IS us~o to insert a 12 word directory
entry' Into the directorv.
If the proper directory
track is +-ull" SUPDP IS calleo to redistribute the dire
tracks.
~ee
tMe svstem documentation for supersave for
a oescrlPtlon of its ooeration.
EOTCH

Th is rout-i ne CheCKS +-or an end-o+-taDe (our i ng M~g Tape
Sleep operations).
It is cal led when end of tape is not
allowable (before +Irst fil~ mark).
An end of tape
prints a tape too Short mess(3qe ane halt,S. Pressinq run
re~tarts the eump.

FN.lSC

~~ZSC •• ndS tMe next active diSC
~~ith non-z~ro select
COde) and returns with certain pOinters set.

FSDAf)

~SDAD lOOKS for nisc space from the ADT.
If insufficient
room in A01. It returns to P+l; other~ise ot returns to
~+2 with AU1t:.~ set to pOint to the ADT entry and A-~
registers set to the oisc address. Disc sp~ce is not
removed from ADT if DCfLb is -1 ane is removed otherwise.

ThiS routine provio~s 0 place~ox for
It aSKS for an error messaqe buffer.
or DISCL wil I print o~t the messaqe.

the

eise driver when
this routine

ilt~er

lSAOT

ThiS routine Inserts an ent~y into AUT and UPdates the
AUT lenqth ShOuld be in core bu~~er and cartain pOints
and PBrameters set.

lSAOT

1hlS rout.ne Inserts an entry Into AOT and uPd~tes the
ATD length v-ord in the E,(JT.on entry, the approor lC!!te
~OT shoulo be In core buffer ~nd certain oOinters ano
oarameters set.

LUlOl

ThiS routine performs the fol lOWing .unct.ons:
A.
b.

~eaos
boCK Into core t~e ~our system segments th~t
were overlayed bv the ADT and rUT buffers.
CMeCKs the lOP's c~te COde in al I C~seS except mag
tape reloao.
If e mag tnpe relOdO is In croqress.
the lO~'s d~te was ch~cked previously.

3-12

L.

u.
E.

Initialize the random number seed.
out the swapping cortion of the language
processor for eaCh port • . ~rior to writing the swap
track'out for a part initialize the pOinter to the?
10 word that port's teletype table entry.
Save the Old device table in a bu+fer beginning at
~rite

250006.

F.
"b.
H.

I.
~.

K.

L.
M.
N.

O.
P.
~.

R.
S.

T.
U•

v.

w.

LDR30

If upgrading ~rom ACCESS lA to lB, set the system
. status into' EQT to slept and go to step m.
Get the new ~e~ice table from the lOP.
UPdate the device assignment wor.d for eaCh entry. i·n
the new device table thet nas a corresponqlnq entry
In the 010 device table. Thus maintain old device
assignments in the new table.
Get the oate from the operator.
Clear the switch register.
Get the time from the operator.
CO~y the Operators time and status of not slept Into
the EQT.
Save the olsc ad~ress of the EUl ane the IDEC table
where the system ~r~~~s~~r can find them.
Write the EQT to diSC.
configure the mao .tap~ driver.
If Upgrading from ACCESS lA to Ib halt (HLT 77B).
Start the clock tlCKinQ every 100 mil Ijse~onds.
Print part ~umoer and date COde on the console.
Enable console interrupts.
Enaole power fai I reCOvery.
5 tar t IOF-t ac t i v I t y •
Disable ~JE command if reQu~stec.
Begin 1 imesharing.

This routine Cheeks eaCh disc in the disc portion of EQT
for a non-zero select COde. For each disc found, the
elsc'S label is read and Verified (woros band 9 Of the
label whiCh contain the system level and feature level
codes are not veri+ied).
If any diSC does not contain a
valid label, the operator Is given a Change to have the
diSC labeled Of TSB. Should the operator decide not to
have such a disc labeled for TSb it is removed fro~ the
diSC EUT ana the MHTHL (whiCh is reconfigured to reflect
the removed cisc). Disc 0 m~y never be removed. ShOuld
the operator aeclde to label a disc
question. the bad
blockS table (block J) Is zeroed and the TSB label Is
written to the diSC.

'n

LDRSO

This routine. startinq at loc~tion 32000B. bui IdS an AOT
in 'core for eaCh active (select code #0) disc. For eaCh
active disc in the disc £QT, the disc's lOcked bloc~s
table is reaa into a buffer originating at 773008. The
AUT IS bui It in core reflecting only the lOCked blOCks
for thiS OISC. During the but 10 process, the length'of

3-13

the ADT for this entry (in the oisc AUT descriPtors part
of the lYT) IS UPdate as e~ch entry is added to the AuT.
When the AuT for a p~~ticular diSC is completed, the
st~rting core address
.s bumpeo by 14008 wordS and
another active disc is SOUQht.
This routtne is
terminated When no more active disc ccn be located.
LD~60

ThiS routtne Claims diSC blockS
A.
b.
C.
D.

the
the
the
the

~or:

system
10 tacle
AUT
directory

Sp~ce IS claimeo
in such a manner th6t .t wi I I not cro~s
acyl tnder bOunory untess the space also oegins on a
cyl inder bOunOary. 5pacea claimed ~or the system must be
resloent on olsc O. Also the d.SC addresses of the
segments ot the sYstem are UPdated in the MST. The other
spaces neeaec may be cla,med from other· diSCS if
necessary.
when the space for the oirectory tr~ckS .s
claimed the Initial pseUdO entries are also wr.tten to
disc. Finally the ADT's Which have remained core
reSistent thus far are written to diSC.
LDR7~

ThiS routine reaos system and system I
tape and writes tne overlays to otsc.

tbr~ry

from mag

EaCh recoro after be,ng read from meg tape into a bUffer
at 77300b is processes as fot lows:
A.
~.

C.

U.

E.
f.

NUADT

if end-of-tile-wrlte I~st overlay to disc, rewind the
routine.
If the record Is orig'ned at location 4002b 6ssume it
is the Loader-System LinkaQe table and ·gO to step D.
CheCK both the st~rtino and endiny loca~ion of the
recoro.
If eitMer location corresponds to an area of
memory that Should not contain system COde, abort the
loao.
CheCK the starttn~ location of the record.
If tt
beginS at 7~OOU~ tt must be a system overlay so ca. I
SYSLb to ~rite the preCeding OVerldyto disc~
Perform a c~ecksum CheCK on the record.
Abort the
load if the checksums conflict. Lacy the record from
the butter to the appropriate core location.
Process the next record.

Thts routine is cal led by CLAIM indirectly thrOuQn CLMFL
to read a spectfied AOT ,nto ADT Dufter and to set OCADT
to COlnt to the beginning of the oufter ~nd clear t~e
~tag LTM~l for
SubSe~Uent FSDAu Cdt t.

3-14

RDISL

This subroutine is c~lled eaCh time the diSC' EQT Is or
might be changed.
It sets th~ ~nterrupt locat.ons ~or
al I existing eiscs. using the select code and bit 15 o~
eaCh w~rd In the disc EQT. this routine decides what type
each disc is and recon~igures the MHTBL ~or discs 1 thru
7.
All woreS except word ~ of a disc entry in the ~HTBL
mey b~ Changed. Also the value of MAXSC (truncated ninth
entry) which contains a double Integer spec'~Y'ng the
ftrst absolute sector number which doeS not maP onto the
system disc confiquration.

RDL8L

RDLBL calc~lates the disc address of a scecified disc
label, readS the 32-word ~abel into the disc label buf~er
and checks the CheCksum for val id label.

RQINT

This routine prints a SPecified prompt and Interprets the
use,. 's • n put. Ani n val i din put P r I n t s II I LL E GAL I NPU TII
and aSKS the Question again. A'Simple CR or "NO"
returns to p+~. otherwise, return to P+l with the
i n t eger (1 t hr u 10) t n (A).

RTAOT

This routine returns any number of blOCkS of disc sPace
to the ACT on disc.
It cnecks to see which ADT the
returning 'space belongs to and readS in the correct
one. Then i~decides'whether to insert the new entry
or to mOdify th~ existing entry/entries and uPdates the
AUT to diSC and UPdates the length word o~ ADT in EQT
if necessary.

F(TSwP

This routine returns the swap areas to ADT according to
tne SWA~ A~~A~ TA~LE (SAT) pn disc.
It reads the table
jnto core location l~SOOb and returns 40 blOCkS for
every non-zero diSC address in the table using RTAOT.
Then it zero's qut the disc address and writes the table
baCk to diSC inorder to have the table kept up with the
current status of ADT.
It is cal led during disc reload
and system u~ddte before. claiming diSC space for new
swap areas.

SLoe

Th.S routln~ processes the LOAO/DUMP/kESTQRE command.
It
on t,y returns to the ca I I I nQ po' nt when no more LOAD/DUMP/
RESTORE commandS are wanted. otherwise, it ta~es the
.
input I ine from the console and prOcesses it.
If only an
ID is entereo. it is claced into a table of IO's.
If
fl Ie names are entered as wei I, the entry Is clacedlnto
the directory with the "recovery" set.

SUPDP

ThiS routine is used to balance at I the directory tracKs.
with or ~ithout inserting a new oirectory entry as
specified by the flaQ SUPTG.

SYSLA

This routine is cal led by both system generation and

3-15

svstem UPdate to write an overlav to#~tsc. Mag tape
reload cat Is SYSLH after loadlnQ each overlay. However
bOt~ svstem generation end system upoate cal I SYSLB
prior to IOdding e~c", overlay, ~ence the ~'rst call in
t~ls cas~
IS always iqnored.
If bit 15 of the switc~
register is set, the load ~alts (HLT 15!:U to allow, for
on-I ine patc~inq prior to writing the overley to disc (to
continue Simply press 'run~).
~rior
to wrltlnq thP. first over lev to diSC, the system
and level COdes are cheCKed.
InconSistent ~eature level
Codes (excluoing system UPdate) at low the user to take
res pon s i 0 iii t y •

Adoltional lv, system segments one ana two are written to
oisc to al lo~ room fro~ ADT buffers for space claiming
purposes.
The lenQth of the overlav in blOCKS is calculated from the first overlay (I .orary sizes table) and
space for the overlavs end the user SWdP trecks is
claimed.
TPLI-<

This routine reaos a mag tape label into the first tape
label buffer TL~T and makes sure that it has a TSB label
and a reel number of one. Aefore reaoing, it initializes
the system level and feature COdes in the buffer to zeros
because the T~A tapes prior to Option 200 did not have
such cooes ana the tace levels were 7-wordS lonq Instead
Of

9.

wOLTE

T~ls routine sets UP t~e disc
label. ~rltes the label,
pre-boot processor ano the ~ntermeoiete and final diSC
bootstrao onto edCh of the active.

WTLAL

ThiS routine comoutes the cheCKsum Ot tne diSC label and
writes the entrie laoel sector onto the speCified oisc.

3-16

Re-Pto NE-1.'Rec040 t:Nom

M""!,

~,.~ PG"

"l!N~~£Irt"lI/r
Nt.A .... ~.~ 0':-

>---@

F'I.Pt~,,,,G.

0

~',J"'~'~S

F'L. IT (., t.r ,.,jT" fQ Y
AS ~l",,::;T" 8~
~t:(!oI.JI£RSO

e-

1..1 pC IT
01 ~c.'T'O~y

'r~JIt(!'"

"-0

Bi')(! t;:

O'~C

Rei 1.4 rQ AJ 1'1-1
Ew T"til'l' S

sP",c.
",or

FLOWCHART 1

TO

I

S

IFfy

NOT

c:.Pc..~A

r

~"'I~

)JO

~oo
T A

:t.£)

,- 0

a L.e

G;. . .--------.
tJo

seT I..ltsr

,...,

CHI'! N')£.

C

"i.

D'R£c. r ot:!'1
&"I~'Q.

WR

Ire

'PRo 6,:)') r'f'I
c.~

F

I';'J.:

TOO ,Sc.

FLOWCHART 2

~Ew INC "Nt)
lANL.() AI)

rnA"..,

T' litPE

We'T£ I.4fCl~"'SC.
"\Re:eT',o~"",

I~"~~

TU

C't.C

R£~o,,~

SPAC£
"o~
"\'" H • ~ t: t.,J"I"'1' "
FRo ",

,iO"

p~OCS$~
~C~/~~I~&.
~F
IIIEliT
TA P E'

'P"~r

"T"pr EfNioll. •

"j)

.( .: J)

ON

FLOWCHART 3

> 

,I

(ON,SOc.E'

tiz)-_·

"

II"r'IT~

\. ~(:

m"" J ,: Y
PAtlllm.,. 0

DI~

._.....,
!

-r Eoi' .!:I

:

t:FLCt'r

i

Ie (:

CerDIIl.~1
F ...,~L..
'I
.

.......... -

...

....

'"'LA4C':::O".',

1,"0/·

~~
FLOWCHART 4

LAPortTE
:CD

~

~e

P"L

lJl,s C

fH.. '-

1""0
i,

(t',-

So yl/U €

L4~t:.D

f..~ P 0 AT ~

f\ .. L.
c:. .,.~ ~ -"
C'NTR,C ~ T (.)
Re I"L.e79~~).

S~~C£

- the amount of disc sp~ced used
for an tdcode entry exceedS the
r:JfTlount alloweo.

£NT~Y

~OUNT

the number Of IU1 track entries in
the lOT table ooes not eOual the
number Indlcateo by the Eouipment
Table"entry.

CHlL~-

T~AC~

toun~

trac~

~ directory traCK ien9th is positive
or not evenly ~~vtslole by ld.

~.

B~D

L~NGTH

b.

TOO MANY

tNl~lES

of\! TRACK -

c.

~AD

D1SC

~UU~ESS

-

D.

INCONSl~llNT

ENT~Y

- the first 4-word iocooe-name
seouence on a oirectory track is not
equal to the traCK'S corresoondinq
se~uence in the ()I~EC Table.

~.

eNTRY ouT Of

O~OlR

- an tdcooe-name sequence is out of
alphahetical oreer.

f.

bAD

PROGRA~

the nlJmber of entr t es
exceedS bhd.
the diSC adaress for a directory
t r ~ c k Iso u t 0 f t) 0 U n d s •

STARTING ADO~ESS - a proqram entry has a
starttno aOdress ~hich does not fal I
witni~ the range +rom ~OOOM to
c::!uUUUH.

3-18

(,.

SAD PHOGH~~'"

H.

bAD FILt:.

a proqram entry has c! length which
does not fa. I with In tne range from
-~'toOOOB to o.

LE.NGTh

a f i Ie entry has a length ",hlch does
not fa t I within the range from

LE."~G TH

3c!.lb7.

1.
~.

Iv.

015C

-

bAD PSEulio ·l:.NTRY
BAD

TH~CK

S~ACE

the directory entry t s not the
entry.

pseUdO

COUNT - the number o~oi~ectory tr~c~ entries
in the DIH~C Table dose not eQual
the number o~ discs on the system
times the number of directory
tr aCk s Per dis C •

US~O

CH£CKtot~1 disc space used summed
from the Directory Entries.

INCQNSISTE:.Nl

th~

If ~ disc error occurs during the warm Start program
testing, the messaqe "DISC ER~OR - COwR£CT AND RETRY"
Is printed and the computer wi II halt with 518
displayed.

war~

I.

Start functions as

lows:

. AUT-CHECK

A.

II.
A.

~ol

th& select cooe for each of eight pOSSible discS
in the core resident ADT Disc Address Table.
If the
select cooe is zero, zero the remaining two wordS of
this entry. Otherwise, cheCK the val 'dlty Of the disc
address ana ensure that the length of the table is both
a multiple Of 3 and between 0 ane -B19~ words long.
Chec~

IUT CHECK
L.ero

ID~f.(O

~.

Get next IUl:.C table entry.

c.

If oisc aeeress is zero, qo to step

U.

Increment traCk counter.

~.

Length o. tratk

mus~

be neoatlve.

-3-19

Q.

~.

Length 0+ track nust ce a multiple of

G.

Trac~

h.

~eed

1.

~Irst

..J.

10 must ce greeter

~.

Seve 10 In 1DWk0

L.

~umerlc

M.

Aloha part Of ID !"lust be in the range of A to

~.

~da numoer Of bloCKS used hy
thiS 10 to a dOUble word
ouenlty.

o.

UPdete

~.

If there are more entries on thiS

U.

The track counter must eQual tne number of 10 trackS

mcY

no more than

cont~ln

twelve~

entries.

~oH2

in lu trecK from disc.

10 on trdCK must eQual the eorrespondinQ 10 in
the IDl:.C table •

than- IDwRU.

part of ID must bP in the range of U to

pOlnt~r

~9Y.

z.

to next entry.
trdC~

go to step ..J.

(NO H·l1 ) •

III •

uIRl:.CTOkY

CHt.t~

A.

Set pOinter to first entry 0+ DI RcC table.

H.

Lero

c.

Length 0+ treek must be

u.

Lengtn must oe a multiple of tNe'vp.

~.

Number at

~.

kead.n Olrectory frOM disc.

G.

Fir S t

0+

lUlle end

f

0 ur

I~st

~ntrles

w or d s

entry

~ncount~red.

neq~tlve.

on traCk can not exceed

0f

t r de k muS

t

e Q 1..1 a

I

~

cd~.

Irs t four

W

0r ds.

DU=Ct:.<.;.

H.

1+ .nit.al ~seUaO entry ha~ not been encountered
ChPCK for It ~no oc to stpp K.

1.

ThiS entry must be oreater than tast ent'''Y.encountered.

3-20

~.

~aKe

K.

I~

L.

last entry encountered equal

to tn's entry.

thiS entry is a . i Ie gato step p.

Program started aodress must be

bet~een

~OOOB

and

26000b.

IV.

~.

Program length must be between
words.

~.

Convert

o.

Go to step

~.

~ake

Q.

Add length

k.

Advance POinter.

s.

I~
there are any
step I.

T.

Set patnter to next

u.

Increment

v.

1+ pOinter to next OIREC entrY IS not Qeyond the end
of the table go to step C.

W.

Last entry must be the +inal pseuoo entry.

X.

TraCK counter must equal the number of discs times the
number of OISCS times the number ot directory tracks
per aisc.

~rogrdm

words and -38

to positive bloCKS.

~.

sure length

of

ft Ie is positive.

in hlocks to double wore qUdnity.

trdc~

uISC SPACE U5eU
A.

'en~th

-~4000B

~ntrl~S

Dl~eC

left on thiS traCK qO to
entry.

counter.

CH~CK

Tne two oauble Nord Quantities calculated in the lOT
cheCK (ste~ N) and the DIRECTOkY chec~ (step Q) must
be equal.

System ueneratlon

1.

Laro IDEe ana UIHEC tables.

2.

Set

system

i.aentl~icc3tion

to blanks.

3-21

3.

Set number of Olrectory tracks per diSC.
set NOIRT eQuel
to one for 7,"="uO I OC!!taers.
In ~l I other cases, set NOI~T
eQual to SIX.

4.

Set numoer of

'.

uet system

6.

ASk operator

IU

trdC~S

(NDIJ.Word

~--------~-----~

Final Otsc

St~rt->2

bootstrao

with 0 :3

----------------

LOCKed bloCK

Table

________________ t

<-for this

only file
dtsc

lOT Tracks
Claimed

0
1

---------------

"TS"
Logical dtsc #
System

4

5

10"

67
~

System level COde
level COde:

~'Feature

32 blOCKS eacn

as space .---------------"ADT Tracks
ava i I ab I e
32 blOCKS eacn
on d t sc
in tn is
OlREC10toCY
oroer
Tracks
32 blOCkS eacn

.-------~---~------~
uLsn

10

0

•
•
•

JO
Software->Jl
generated 3~

o
Partty Check word

33

------~------~-System

•

LII::H(~kY

•
•
•
•
•

------~--------Swap
TraCkS
42 blOCkS each

Pre-boot

lc!1

:--------~-------

-----~-------------

user
Storage

----------------

3-29

tiP 288:) Disc
logic~'

HP

Disc

c,!

~uC)bec.

t t nder

~umbec.

o

o

o

10

~300

9:3:38U

C:!O

140070

4600
b"iOO

·4

l~b760

30
40

~

~33450

~O

6

2i1014U
320830

60
70
YO

HP 28d'~ [) I SC

Cv'inder
_~uC)bet_

First k'e'ative.
_ ___

t;jlgc:~

____ _

9c!OO
11500
1JSOO
16100
18400

20100
23000
25.300

le::O

~7IbOO

130

i9900

140

32~OO

1~0

34500
3edOO

16U
170
IdO

3':ilOO
4140U

0

1~0

~J'700

c:.:sU

~uO

4bOOO

4~U

b"JO

Y20
1150

6

IJbO

7
8

1010
IM40
2070

'J

First ~elatjve
61QC:ts

46690

100
110

~

sc

1
2
J

bO

4

D.

o

1

0
1
2
3

2tH~.;i

3-30

HP

2tH~3

Di

sc

HP

2Bc3 L> i sc

First
BgJ.g.t.l~e_elQC~

Se(;"gC_~UmbeC

0

i!
3

0
11 1/2
23
34 1/2

4

40

~

f::J"l 1/2

0

of..J

7
8
Y

bV

b~gg_ea.lmbeC

0

1

10
11
12
13
14
I!:)
10

lY~

1/2

4

5

.L~

b

6 1/2
7

J./~

13
1415

1/2

10
1,1

1b4

207

4

10
11

101

Ifj
19

3

3 1/2

9

13d
149 1/2

17

1
1 1/2
2
2 lIe

~

103 1/2
115
1~o 1/2'

17~

1/2

2
3

'-'

9~

0

1

'5
6
7

l/~

6J.gcts

l~'

8
9

1/2

~1
~2

11

~o

3-31

1 1/2
8

9 1/2
10
10 1/2

19

2:&'8 1/2

5 1/2

HP
Loqic~1

7~OO

HP 7900 Disc

Uisc

Uisc

~'!

t::IumbftC

tinder

~umbeC

o

o

o

o

1
2

9744

~~O

194B8

10
20

J

c::"j~3~

:;JO

1440

4

3t;~7t:l

40

1~20

S

4H7~O

~O

c400

b

~8404

00

2~dO

7

b~20t:i

70

33bO

HP 7900 U.sc

nder

_t:tUmbeC-

f erst

____

Hel~t.ve

~lQC;ts

____ _

'100

~u

3~40

90

.. 320
4dOO

lOU

Cy Ii

First Relative
Bl,u:ts

110

S~dO

1~0

57bO

130

o~40

140

6720

1~O

7eOO

.LbO

7680

17U

t;160

1~0

8640

o·

u

l~O

~120

1
2
3

4fj

200

~oOO

~o

144

7

19c:
240
c:: tH'i
336

8
9

4:;~

4

S
b

3b4

3-32

HP 7900 Di sc

HP

1900

IJ

t sc

Farst
tle~d_~umQec.

0
1
2

3

~~!Q~i~~_6!QC~

sectQc._t:lU/]lb~C.

,

6!Qcts

0

0

0

12
24
30

J.
2

1

1
2

l/~

4

1/~

'3

5

~

(;

3

7

3

t5
9

4

10

4

lIe

lIe

1-1

5
5 1/2

l~

6

1'3
14
1!::)

6

16

8

l/~

7
7 1/2

11

8 1/2

Its

9
9

19
20
21
~~

23

3-33

i/2

1/2

10
10 1/1
11
11 1/2

HP l\juS DISC
LOQicat

First

U.Lsc:_~umbeC

6J.g,ts

Cv

I l~ger

~umbeC

aeJ.etJ.~e_t:llQC:ts

0
1

0

0

~~~9.2(lO)

2

49J. ~4 (10)

1
2

0
72
144

3
4

~b77b

3

21b

11b308(10)
147960

4

~H8

~

177~bc

6

7

i:!07J.44

7

JbO
432
504

tj

~3b73b(10)

tS
f..J

b4=.:J

5
6

57b

J.O

7t!0

cO
JU
40

.14+40
2.100

~O

bO
70

Cv

First

ccU~O

3bOO
4+320
~O40

~o

~7.bO

90
100

0480
7cOO

110

7~20

l~u

db40

1.;0

':i~bO

.100t:JO
.10dOO

144

J.4U
l!:)O
100
.110
lbO
1\j0

~lb

cOO

14400

JOO
400

~lbOO

0
7

2bb
JbU
4+3c
504

t:S

~70

'i

043

I i nder

_tlumcec_

0
1
2
3
4
!::)

.. irst
b~l~tJ.~C_b!QC:ts

0
71::.

3-34

11~20
.1~C40
J.C:!~bU

l~bl:SO

~8dOO

HP 1905 Uisc Relative

~Iock

Numbers

tr s t

~ec:tor

~~!CI.1.~e ... ~!QC:~

~umgeC

t-

o

o

1

24

"2

48

0
1
C!

0

0

1/~

:3

1
1 1/2

4

2

5

~

6

~

1

e

1/2

.3 1/2
4-

1/2

9

4-

10
11

5
~

1/2

12
13
14

fJ
fJ

1/2

1~

16
11
let
19
20

JO
40

3-35

Fir st
et1.Letj,~e_a!QC:~

1
1 1/2
t:;

ts 1/2
9
~

10
1~

cO

1/2

15

b

o

"'

I----------------~--:---~--~---------------: HluM OISC
: CYLINOEk NUMBEP

I NOT USE:.U

AUD~ES~

wORD

I---~-----------~----I----~----------------~:

15

13 Ii

o

H 1

:-------~1-----------:--------:-------------:
:

L'Ow DISC

:NOT

AOO~ESS

USlD:~EAD

NUM~Lk:NOT

USEOISlCTOR NUMbER:

wO~D

:--------I-----~-----J~-------I---~---------:

hlo\t-(OWARE
DISC ~UDRE:.SSING
FORMAT fOR H~ ~~dJ
(32 bit uat~ Channel Word)
(ORIVE S~LiCT COUe is
CONTAINEO l~ COMMANO WORD)

3-36

A 1

15

I----~---------------:--~-------------------I:
I NOT USED

: CYLINDER NUMBER

:

1--------------------1----------------------:

15

10 9

8 7

5

4

o

••:--------:-----------:--------:-------~-----:
INOT

US~utHEAD

NUMbER:NOT USEOISECTQR

WORD 1

NU~e£R:

~ORO

2

:~-------:-----------:--------:-------------:

HAHUwAR~

DISC AOQR£SSlNG
FORMAT FOR HP 7~OO
(32 ~It Data Cnannel word)

(OkIV[ SELECT cou£ IS
CONTAIN~D IN COMMAND WORD)

3-37

Q

:----~------------~--:--------------~-~--.--:

I

•
:

.

N01

: CYLINOER NUMBER

USi:.U

WO~D

1

wO~D

2

:-----------------~--:---------------~------:

Jl5

13 le

8

o

7

:~------I-----------:---~------~-----------I
I

:

0

:MEAD

NUM~tk:

S~CTOk

NUM8ER

•

:------~-l-----~-----:~-------------------~-:

H~~UwARE.

Dl~~

fO~MAT

(32 bit

~tJD~£:.:SSINu

fOk

U~ta

H~

7~ij~

Channel word)
(OkIVE S~L~CT COO~ IS
CONTAINED IN COMMAND

3-38

WO~O)

or~c

E~WO~

ROUTINE~

recovery Is predtc~ted on thr~e different types of
inaoility to r~aci or writE' a portion Of the disc
orl 2) totet system fa, lure due to ~ completp d~SC failure •.
erocpssor ~elfunctlon (esPPcl~lly memory eerity errors). soft~are
f~1 lures. etc; or 3)
lOP fet lure.
Recoverv from disc fBI lures
ent~i Is cel I ing of a routine d~pendent on the tyee of entity
involved (user SW~~ tr~c~. directory track. IUT tracK. ADT tracK.
com~~nd overlay. etc.).
~ecoverv ~rom a tot~1
system fa. lure
entai Is use of the war~start eroor~m (oet~i led in t~e sect.on of
t"'is t"lOClJment concernino t"'f.' loaoers) in conjunction ~ith some
oroohytdctlc Me~sures ~t~~yS t~ken hv the sy~tem. ~ecovery from
~n J"P +al turp ent~i Is t~e use of
the lOP ~~~IC routine.
Svstp~@rror

f~llure:

An

1)

oisc ~rror whtl@ S~PlpPlno n user In or out ot
Cd"
to the P0 Q T ZAPPfP routine (PTlA~).
Ar
error In re~ding an overlay C~U5es ~ cal I to ~~erqencv Sleep
(STCKP).
In~bll i tv to r~(II<1 a sys~e,." track
(oarectory. lOT. AOT.
etc.) typicet Iv causes ~ c~1 I to SJC~p.
Occ~sional ty,
ho~ever.
the mpSS(IIIQe DISC Ekf.«(Jt-t .. CAN'T 00 IT is outPut *nen tne error in
re~~ino the syste~ traCK
IS re'~ten to ~ minor command.
An error
in writinq ~ system tr~cK causes ~ c~1 I to tne SALV~G£ routine
(SLVAr,).
Any non-recOverdole read/write fai luras (e.c_~ oort
7epo~r end s~lv~qe are disc reSident: a ~~I lure in redninq tne~
int.o mel"'lorv is d non recoverc=,blp. redd fai 'Lire)· causes ~ ca"1 to
t t"I p S Y S t e r:"I de a t h roo uti n e ([) F.. A 0'" ) •
T '" pro lJ tin esc 0 r t Zoo per ..
!I;~IVlllnf'. rmercency step-o. (lind ne..,c:f'ar·("- oiscussed Delow.
unrecoverebl~

m~norv

In

cau~es

~

t

to ellow recov~ry from ~ tot~1 svstp~ fai lure. the
t~nlp~ on the nlSC m~st ~e uP to ~~tp dna conSistent.
lnlS is
qenprAI Iv thP c~se wit", t~e excp.otlon of thp. r)l~~C ~nd IOFC
me~ory resident
t~b'es ~nd the eauloment
t~nle whicn contelns
news o1tbout thP system AUT ~ntries.
T""eretore. e~cn til"\e a
~trp.ctory
tr~c~
is Snortp.neo or lenothencct. dn 10 tr~c~ is
.s",ort~ned or
len?tnenerl. or a svstp~ trecK is ~oved (see sa'v~oe.
below) the eouipment. the ()TJ.lEC -!nd tht" llJt.c tdr.>les ere ued.dted
on di,C. Tnis preventive I"\pesure ensures 6 ~oo~ cn~ncp. that al I
disc reSident system t~bles ~r~ uD-to~o~te dna co~~istent. The
wermstart proara~. ~nich would bP used In c~se of tot~1 system
fei lure- thUS hdS 0 gond Che'lnce o~ ~in<1ina t",P. diSC In aooC1
O~rl~r

Sh~OP..

3-40

Wn en the
0 LJ tin e •

r

for

~nCh

1·0 P f a I Is. L.t s e r s are Ins t rue ted toe x e cut e the lOP P A 1\1 I C
J his r 0 uti n e sen d S tot h e 5 P a 0 u f· fer e'" 0 t Y not t f i cat ion
port.
This ensurps t~nt the SP ~Op.s not hang because of
full bit set in a user's ?F'LAG word.
In addition, it

nuffer
resoonds to al I requests from the SP with a O.
IF any user
reoulre", .ncut. thiS U f~kes a resoonsE' (all system COde wrlich
receives characters tro~ the lOP treat a 0 as a carriaQe return
-., null (ASCII 0) Is never leQa~ as an input Character' since
nul Is are strioced by the lOP). This 0 also satisfies ~ny other
SP r~quests (e.q •• SysteM sends transfer incut ouffer ~nd lOP
respondS with O. SYstem Interprets th~s ~~ zero length transfer
and is sdtisfied). Final Iv. the lOP is I isteninq for send cold
dumn (~SN) comMandS so ~ COld duma can oe cerformed When the lOP
is in ~ANrC.
l!t

Thp ~p.t result of ~~NIC is to get the system processor to a pOint
whore d SLEEP (or HlbERNAT~) comm~nd can be entered at the system
console. The constant ~~E's and zero responses from the lOP
al low the system to be success~ul Iy sloot.

3-41

routine intorms al I users that the system is gOing dONn,
non~sharea6lp devices (to fre~ the lOP), tel Is the io~
th~t
thP. syste~ is gOino down, Informs the console oper~tor of
imp~"nin9 d~~th. ~nd. fin~1 Iy. helts the syste~.

T~p.

~p~a

cla~rs

~I I

ThP. emerQency sleep routine does the same thin~ dS DEAD wit~ two
memory resident t~bles a~e uPddteo on the.disc and
th~ ~ystem slept flag
is set to sleet. keCovery IS gu~renteed
from ~n eneraency slee~.

exc~otions:

Hot~
Jp.ttison port (~lZAP) and s~lvnQe reSide on t~e disc.
They
arp. reaM into the area ~etween the usar ar~d ~nd the disc driver.
If ~ f~i lur~ occurs ~hen r~adtng, we cal' 0~AD.

Jettison eort KiCKS a uspr off the system. maK'ng his port
unc!v"'1 ',=tole +or further usp.
It first removes the user from the
SCheduler cueue ane cle~rs MAIN in case It w~s set.
The user's
?FL~r, wora is c'earec ~nd non-Shereaole oevices are rele~see.
The user'S aree of the FlJ~S tatde is cle~red to release env f,'es
he ~Icht h~ve been USlnQ. Findlly. we inform the user Of the
loss of ~IS port, set thp. port's stetus to un~vai lable. tel I the
Sy~t~~ n~er~tor of the ~rror.
~nd return to normal
syste~
ocp.r~tion m,nus one POrt.
Is c~1 leo on B f~i Ip~ write of a system table.
It
thet the traCK is in memory startino at LlbUS ana that
wo~n ~ontd.ns the 'enQth ·of the tr~~k.
It also ~ssumes that
STDAP contains thf:' alsc ~adress where thp tr~co( has fai led to
h~v~ been written.
In the worst casp. an entire trac~ (d19~
wOrd~) ano ~ tan'e (SUCh ~s the one createo by the system
op~r~tor'S foJURGE or MLOCK comfTlt=tnC'ls)
is In n1p.",ory.
we are a'lNays
Ou~r~nteeo th~t the SPAce occuoled nOPS not e~teno p~st ~4U006.
FxeclJt i on i s ~s fot I Off'!; :
S~lv~oe
~s~u~p.S

1.

2.

aocroxim8tely l~ (71~M ~orrlS (3 oo~s not diVide evenly
into lK)
chunks Of thP. ADT into ~~vOOH (tnrow away the AOT
If we c~n't redO it) ~nd se~rc~ for a free area 'arqe enouo~
to holo thP. traCK.
If no so~ce .S founo and track to oe
s~tvaQed was ~n ~~T.
throw It ~w~y ~no pXlt. otherwise ~e
~ust dip because W~ can't ",oVP the trac~.
~eao

If space
~pmory

3.

is founa. SUbstitute the new diSC add~ess jn the
resident tablp. that points to t~e resoectlve tr~c~.

write trecK to its new location on the diSC (jf we
~ie - o.oto DEATh).

3-42

c~ntt.

we

4.

the spoce fro~ the AnT for th~ ne~ area Just claimed,
tp.1 I the ooerntor that a tracK was fTtOVed, and return to
normal oroce~sing.

~e~ove

DUMP

C~LD

PROGRA~

Preparation for runninq the cold dump
1•

croor~m

If the I/O crocessor is halteo, note the register vBlues
start It at "PaniC" (Iocetio .... 2000H .).

~nd
~

~

3.

... I t the main' crocessor and record the va,lue of the
-r e Q i s t e r •

Mount

t3

maq tape

J

wit~

C!

write rino and sFdect unit o.

Set the P-regjster to 77UOO~ (the startinq loedtion of
the MemOry resident bootstrap that reaos ~he cold dumc
crOQram from diSC.
The cold dump
seQuentially.
1.

2.
3.

4.

S.
b.
7.

bootstr~c

performs the fol lOWing functions

turn off the interrupt system
A.~. t
and 0 r~Qisters
disable power fai I recovery
read the final rlisc bootstrac in memory starting at
location 40000~.
oet the rtisc address and Size of the Cold Dumc Progr~m
from the Master ~egMent T~ble portion of the final disc
bootstrap.
re~d the Colo Dump Program into meMory startinq ~t
location 40000M.
jumc to the COld Dump ProoraM.
s~ve

The cold dump program is ~ssembled ~t loc~tlo~ ~4000B
hut is read Into memory at location OSCOA (currently
loc~tlon

40000h).

T~e cold dump program cerforms the followina
taskS
seauentlally:

1.
~.

J.
4.

S.
b.

7.

Checks thet unit· 0 Is on line.
Checks thet the m~g tape has a write ~ing~
Rewinds tece.
writes colo oump label.
\oIrites reqister values (A,8.E ana 0).
writes system crocessor memory~
~eads t~e fanal
rliSC bootstrep le~ds ,nto memory at
locetlon 32000A. The ~ST portion IS needed as It
contains the OISC addresses of the disc reSident
cortlon of the system. The in.tidl time the final
OISC bootstrap was read into memory. i t wasoverl~yeo
by thf!' cold dUmc oroara.M after the 01 sc d:tdress and
length of the COld rlump CrOQrdm ~as extr~cted. This

3-44

8.

~.

au.

11.

1?.

13.

14.
l~.

Ih.

minimizes the amount of memory that gets clobbere~ p~ior
to beinq dumped to mao tape.
If possible (If t",e lOP Is "'istenino'l), the lOP memory
is dumped .n ChunKs into ~ 127 Nord syst~m crocessor
buf fer.
Af ter each tr6ns fer i s co~p I ete.d. the buf fer Is
oumped to maq tnee.
~ead system diSC ~rlver i~to memory.
~estore disc driver:
A•
C led r Mb US Y
H.
Suppress disc ~rror meSSdqeS
C. Restore pOinter to the MHTBL
U. Restore oisc driver interrupt ooints
f..
Set i nterruet locat Ions for all oi S.CS.
Dump swao traCks:
A.
read system-loader ',nkaoe table ~rom disc. on
fal lure. forQet ~bout dumping swap trac~s.
~.
From the I inMao~ dre~ n~t the maximum length of
'a user swap tr~ck. starting core address of user
, swap area. length of a TTY table. and the pointer
to the eisc arldress of theSwao trac~ for port O.
C. Dump at I Swap tracks, stoclng after ~~ have been
dumped or ~ disc address of zero Is encountered.
Dump I iorary sizes t~h'e ann FUSS table.
Dump directory trac~s stopptno after ~O trac~s have been
dumped or a CISC. ~cdreSS Of zero is encountered.
Dump 10 Tabl~. stopoinO ~fter 10 tr~cKS haye been dumped
or a diSC ador~ss of zero Is encountered.
Dump Avai lable Disc Tahle, stOPPino after l::J tracKS have
been dumped or ~ diSC address of zero Is encountered.
Terminate Colo Dump:
A.
write 8 end-of-ft Ie marks
d.
Issue a reNind/standhy to mag tace unit o.
C •
Hal t -'7t;j

TI-IC fel lowinq errors are correctable by correcting the
problem and t"en cresslno '~UN'.
Ot~er errors are not
recoverable.

Err or s
'-ilT 22t-1
HlT 338
rilT 44A
HLT 55B

COLD
Th~

a

DU~~

~APE

DISC 0 ~OT READY
NO w~IT~ RING ON MAG TAPE
MAb TA~~ UNIT 0 IS NOT ON-LINE
MAl" T~J-ot:. HAD OP TOO SHOI=iT

FOk~AT

COld dump tape IS written in variacle length recordS with
The tape "IS written
record length of 1~1/10 wordS.

m~Xlmurr

3-45

in t .... e

~o

I low i nq

~ormat.

Co
LD

L~oel

Qeoisters

A
b

DlJ

MP

EXXXXO

System
~"'OCC?4SS0'"

~OOO

(E.xter"d/
Ovf I )

10

loc 2

Mem"r" v
loc 3
I/O

loc 77777

Prqcessor
Me"o,..v
loc

0

EOF'

~wc!to

T,..PIIICKS

loc 1
•
•
•
Swc!o
T,..ltCK

Nt: I"PEP

nATA

0

1st 4
WO,.. d-s
of

TTY

T~bl~

£OF
SWc!o
Tr~cK

1

EOF

•

•
•

Swap

Tr aCt< 31
FO~

EOF

•

~OF

•
•

3-46

COLD

--.--~-----

•
•

...

• )

.•

~--

•

•

"

Library

L i "'". e"" y
Si7.p.s

Sizes tablp
(25t1 WO;'d~)

T~blp

FUSS, t(l!ble

F..

TAPE FORMAT (con t

1.)IJA.lfP

(lOC:'4 WOrdS)

FUSS

Table

:t::OF

-....---_ ... - ....---

fo.OF

------------flO
f)irp.ctory:
Tr.,a,cl= l~ wordS

<=

IS

~OOO(~)

From IO~derMLTdL to MLT~E -defines segments vet to be
oumped

------~---------~---I
~E("t.-1~NT 1INTf:.t-(~UPT

core

loc~t'ons

2

to

core

loc~tions

+rom end

~1(8)

TAHLi:.

--------------------:
SEGME:.NT 2HASl_;. tJAGE

--~-------~-------~SI:::GME:.f'II' 3SYSTi:.M LINKAGt:.
TAdlt:.

----~--------~-----SEGMf:.Nl 4SYSTt::~ St:.bMt::NT
1

~qujpment

Tae.e

o~

io 1777(8)

core loc~tions containing loader
system I Inkage intO-~OU~(8) to
21J1~(ts)

core locations from end Of
Table to ~1771(H)

~-~----------------(Contlnuea on ~age 2)

3-50

DI~~C

2000COM~U1E~

SLEEP MNU

SYS1~~

HIB~kNAT~

lAPE FOkMATS
(Paqe' 2)

--~---~------------SEG,.,iI:,NT 5SYSTt:.M
SEGMENT G

Core locatlons 42000(8)

to

~1177(8J

----~-----------~--SE<';foAENT 0SYSTt:.~

~2000(d)

to 61177(8)

core locations b2000(d)

to 11117(8)

Core

to 77671(b)

core, locations

St.GMt:,NT :3

---~-----~------~--SEGt.-lt:NT 7-

SYSll:.M
SEC.. ME:Nl

4

---~-~--~~----~-~---

SEGMI:.NT 8SVSTt.M

SEGME.t-.T

locations 12000(d)

~

--~--~----------~--Lll:'lto(A~Y

LEN(,TH
TAHLE:
-~------~~------~~--

•
•
•

( a I I 0 f I i br ar y
one per recora)

•
•
•
--------~-----------

Tape must be long enougn to
record at least to ~ere, plus
an end o~ tape marker

EOF

---------------~--~I~
tape Is long enougn, user
program ~nd ~lles wltl be
recorded here In same ~orm~t as
on DUMP TAPE - HI~£~NAT£ recordS
at I fi les and programs.
SLEEP
recordS al I programs and ~i las
that ~re new since last
t-III:1t:.kNATE

3-51

2000/CQMPUTER SYSTtM
DUMP. TAJ.'E.

E.XAMPLE 1

FO~MAT

wor·dS

Aiioc:eted

1
9

Tape 1

wora count=-lO

------

~

-

Negative
Decooes
word

.1
~

I:.OF

~

---------------12

256
256

4

S

•••••••••••••••

6

F tie 1 • Logical
blOCk 1

7

•••••••••••••••

b

...............
'

I' e 1, LOQiCel
t:tlock 3

25b

F

256

Fi •e

C?C3J6

--------------F Ie 1, LOQicel

••••••••••••••••

bloCk

1. LogIcal

:"Lts"

:"TS"

:,not useo
reel num09r

year
nour Of year .
tentns Ot secondS
-3600U

~

system level cOde
feature leve' COde

----------------~to DI~ECTO~Y format
oescrlbed e'se_nere

Ident'c~

Dotted lines aenote IOQlcal
tnformatton divisions'
sol'd lines denote record
(E.OR) g4!ltPS

5

----------~---E.QF

Last Pnysical ClOCK of a
b'OC'< FlLE
End-of-flle

·-~-~-----------I
12

256

(oe~in

4

I

b~OCk

---------_.
wtth 1)

Directory E.ntry

F i Ie 1,.LoC;ical
bloCk 2

count'of recoro

~s:

:

L~dI:.L

~ord

utrectory ~ntry:
••••••••••••••• 1
F~le 2, LOC;Icall
tslOCk 1

--....----------

1 bloCkfi Ie

~OF

--------------E:.OF

---------------3-52

~

...............

1 :v-ora count

:

7

£nd-9~-taPe.

ent ire dump

:LAbt.L

:--------------:t:.OF

:-----------------

3-5·3

but not end of

2000/COMPUT~~

SYST~M

DUMf-' TAPE
FO~MAT

~XAMPL~

2

woros

61lgc;eted

1

:word count

1---------------;
I

9

•

: L14t:H:.L
__

1_ _ _ _ _ _ - - - - - - - - -

ll)lrectory t:::ntry
12

1024

l

:

...............

IProgram

<-- Programs are dumped to exact

A

length fro~

--~--------------

lenQth derived
le < M < 1024

DIR£CTO~Y

wores.

:--------~----~~:
-------------~---

:t:.ot-

I

12
256

256

Uirectory

•

~ntry:

• ••••••••••••••

Ie 3~ logiCal
fjloCk 1

}.

fj

)

} <--

• ••••••••••••••

le3,Logtcei
tiloCk i

Fi

~-bloCk

fa

Ie

}
)

---------------~: ~Of
----------------~
12

.

Directory Entryl

• •••••••••••••••

·

L

tJrogram

<-- L<

t;

lO~~

------------~---I~OF
}

-----------------

)

3-54

wordS

1

:woro count

~

)

: ••••••.••••••••• : )
: .

:

)0

:LAb~L

l )
)

----------------- >
lEaF

--------~--------

)0

<-- Ena-of-taPe

2000/COMPUT~~

SYST~k

DUMP TA .... E.
FO~MAT EXAMPLE 3
ANOTHE.R POS~IBLE
FOkM OF' TAPE 3

TAPE:. 3

------------------.•
Word count

~-----------------••
: "'ord count

.

•i• ••••••••••••••••••••
•
•

:

L~bel

:

EOF

I ••••••••••••••••• :

••
I

Label

-------------~----:

-------------------

EOf

-------------~----: EOF

Directory Entry

------------------: l::.OF

•••••••••••••••••

-------~----------: word count

:

Proqrem C

................. :

: LABEL

------------~-----: EOF

:

------------------I EOF

---------~--------: EOF
-------------~--~-: EOF

---~--------...-

<-E.nd 0+ tke
)
set of DUMP
"
tapes tnaic~tor Less common terminatton-----~---------~---)
: word count
Jlast tQPe is used to
•• ••••••••••••••••••• .> <-E:.no-of-tape
contain only the nend
••
of the set of DUMP tapes"
•• ))
: LAt1E.L.
indicator
----------------~-~
: EOF

------------------"
Normc!tl

)))

)

last entries

3-56

2000/caM~uTER

DUMP

SYST~M

TA~t:.

FO~MAT

I:.XAMPL£ 4

N
----------------~-: word count
•• •••••••••••••••••••
TA~£

TA~E.

-~~----------------

: Word count

I ••••••••••••••••• I

•

•

I

N +1

I

•

•

: LAAEL

I LABEL
I

I.

I

I

•

---~--------~-~~~--

~---~~------~~-~---

................ .

Fi
4, LOg j ca I
Block 5

:
~

'e

Directory E.ntry

File 4, LogiCal

•I _ _ _ _ _ _

: t:3lock 1
.:
.. -- -- -.--.---: Ft Ie 4. Logical
• tjlOCK 2

--_ -

Logical
loCk 0
I--~--------~-----.
: File 4. Logical
: BloCk 7

--

-~----------~-~-Fi

'e

4, Log i ca I

•

: LABEL

)
)
)
)

---~---~---~-~----I EOF

)-

•• •••••••••••••••••••
••

-------~-----------

E;

----~~~------------

•

~~---~-----~--~~~ }
)0
: Ear

word count

I

: EOF

--------~-------F', Ie 4, LOQical
~Iock 4

~

Fi Ie 4,

-~-~----~-~-~-~----

Block 3

---~--~~-~--------~

---~-------

:

•
•
•

)
)0

3-57

SCr-4EDULl~G

4-1'

SCtjEOUL.lt:H2
Th~ h~StC Chi IOSOhy ot the TSH sCheoul Inq a'aorithm Is to orovlde
short re5Ponse times ~or short. interactive )005 at the possiole
co~t 0+ ~pl~ys
In longer runninQ jons. The imbla~entatlon o~
this tnvolves a Queue Of jObS to run which IS ordered according
to ~ o'ority scheme. The ou~u~ Is a I inKed I ist of from 1 to J4
entries. e~ch entry pOinting to the next entry, and the t~st
entry pOintinQ baCk "to thP. first. The 34 oossiole entries in the
oU~\Je ~re the 12 user LI"'t< entr,es, l' LINt< \Nord In a truncated
TELETYPE tenle reserve~ for th~ syste~ conSOle. Rnd a Queue he~d.
Thp, aup.ue hedri consists of ttie loc~tlons ~"LI"'r< (0:2). c"\nd IS
~Iw~vs
tn the Queue.
T~e Qu~ue heao has a oriority Of
7/717(H),
Nhi~h
is stored in loc~tio~ MLINK+2. ~nd it IS always the last
~ntry
in the Queue.
As ~n eXB~ple of hON this ~orKS. ~ssume th~t
usprs 1. J ~nd 6 ~re on the QUeu~ In tndt order and so IS the
svste~ ~onsole.
in e 00sj tlon ~etw~~n users 3 and b. Then tne
QU~UP' wi I I have the tOI lowlnq ~opeRranco:

TTy II 1 +? LIN K

<-----.---:-----:-------:

~--------

u

---------

TTYlJ3+?LINK

<---

.---:-----.: -------1

. : -..---:-------:

----~------~

TTYOt+":LINK

<~--

----.. _--- <--. --- : ------:-----~-I

't~LFV

4

---------

<---

.---:--------

:-------:
11"111

4-2

:

MLI~K entry
i~ d'w~yS ,t~~
last entry on the aueue.
is a painter to the first ~ntry. which in thls case is
TTvOI.
In the case of en emoty Queue. MLIN~+l ~i I I paint to
Itsptf. i.e •• CONT~NTS(~LINK+l)
CONTENTS(~LINK).
Each ent~y on
the ~ueue has a priority no less in numerical value than that of
the one its points to.
When an entry is to b9 added to the
ou~ue.
It is asslqneo a priority according to the rules described
below. and th,en INSE:.Q i4S cal led.
INSEQ computes a new priority
u~lnq the fot lowin~ formul~:
S.nc~

the

MLl~~+l

=

New oriority

= -(ala

~riority)*(nU~ber

of ports logged on +1)/4

oueue ordering 's o~eserv~d by Insertina the new entry Just
of the first entry Nith a lower (more negative) priority
nU~bQr.
Note that When the ~irst @ntry in the queue hes priority
o. it wi II maintain that position unti I it is removed from the
QUp.up' entirely. To ensure th~t al I jObS wi I t eventually reach
t~p top of
the aueue. the priority of the entry Just behind the
new entry is incremented ny one. Note th~t bv uslnQ the number
of ports loqoea on the system as a factor in oeterminlng
priority. we base the speed at whlch JObS re~ch the top of the
ou~ue on th~ system
load.
T~e

ahe~M

Th~ fol lowinq rules are used to aSSign
(ana reaSSign) priorities
by rout i np.s wh i cn ca I I INSF (~:

I'.

tJoon first enterino t"'e Queue,
follows:

jobS are

assi(~ned

priorities

-31;

~YNTAX
lines dna JOhS rp.turnlnQ from I/O suscend:
0
1
HASIC commandS H, a . ~
. ~ . an . a . or an ,
~ RUN
jOb is reassioned a prior~ty of O.

RtJf'04

The C~FATr command is re~ssioned a criorlty of 4 when It is
susonnoea after wrltana file m~r~s in 40U blOCKS.
Aft~r

~n

abort during oroaram execution a user

4-3

is re-asslgned a

oriority of 0 to run the routine which
date +or f i I es.

uPd~tes

the last c.hanQe

the

coi ('Its to· the I ocai on I n the COMTABLE of the di sc ~ddress of
library routine in core. LIH = 0 when none is present.

Th~

fol lowjnQ conditions must exist for the scneduler to permit

LI~

ex~clJtion:

A)

for Syntax ~no HA~lC commends;
set td potnt to correct user

~AIN

R)

for
MAIN

LIR

diSC

reslcent

t~ble

comm~nds:

= 0
~et

to

corr~ct

~isc

reslden~

routine

Th~ ~chedul~r routine S~APR
is responsible for creatine these
conrlitions. and makes its decisions ~cCOrdlnQ to the values o~
MAIN, LIb, end tne entry on top of the Queue.

4-4

SCHEDULER

UPDATE THE
TIME OF THE

.. HOUR.

8u;.tr
-re~jIo\lj,ler

::c':i) ....
C.OUHT

ODD

('HE.c.)<

~!\.

UU~

fAUSt:

( ...."'~M.'·,)
IIM~ CI

u·i'

·ves

CLFCLOCK
SAVS REGISTERS
ANO BLOCS< THE
CLOCK.

CLFCLOCK

NO

NO

PRIORITY-4

REMOVE FROM
QUEUE.

FLOWCHART
1 of 13

SCHEDULER

INSERT THE USER
ON THE QUEUE

BY PRIORITY.

ADVANCE

POINTER TO
NEXT TTY.

Cc..EAf\ THE
PAC .,.

alT.

FLOWCHART
2 nf 11

SCHEDULER

SETPOINTEA
BACK TO FJ RST
TTY TABLE

No

c..:, ""s.,..~u(.t"
l!"iV..1.
A)..Ii)

Me;-::O!).\GIO
U i' j) ,;'T"~

UPDATE COUNT
ANOMEe5AGc
BUFFER POINTER.

Qve:lJS"

UPDATE COUNT
AND SUlLO
LOG MeSSAGE.

FLOWCHART
'1

!~

1

3

C"~~T~lJc:.T'
MG'~~A"~

#

S(HE:DULE ~

St:N.b TUo\ 10 :tOt:.
~E.;.elv':

01)1\1"

M€SS"'"

"'ES~"".J
'':'10.

HT A ... ~

Pc; I"'T~I\

StiNI)

M Ii OS :. ,\ C; L!
'T~

-roP

FLO~7CHART

4 of 13

SCHEDULER

NO

YES

GET COMMAND

PRINT Un?""

YES

PREPARE TO
PLACE THE CON·
SOLE ON THE
QUEUE.

SET POINTERS
FOR QUEUE
INSERTION.

S E'T
PAc.T
8,T' F9g.
'])IiV,<.E'"

U~

e It

SCHEDULER

INTERRUPT OFF

LIBRARY TYPE
PROGAAM$ MUST
RUN TOENO

UNBLOCK THE

BEFORE BilNG
SWAPPI!D OUT.

CLOCK.

PRIOR'TY .... O

PREG .... 1RSTR

7ASTA",

ONLY 8ASIC
PROGRAM

seT THE TIMER.

EXECUTION IS
TIMED.

_----_._- - -

......

SETTIMEF IF
THIS IS RUN,
LasT

-,.

P";IIICt4

RESTORE

REGISTEnS.

RESTOR! DISC
BUSY FLAGS.

ENABLE INTER·
RUPT AND EXIT

VIAPREG.

FLOWCHART
(:;

nf=

,~

SCHEDULER

AN INPUT H.AS
BEEN TYPED OR
AN OUTPUT HAS
ALMOST
COMPLETED.

CODE TO
HANDLE ABORT.

___ _ -10--------'

REMOVE USER
FROM QUEUE.

RESTORE THE
ACTUAL STATUS
(SAVED IN
?PLEV).

HEMOVE OUTPUT
WAIT .4\"'1) C.HAIN

S,TS' F.(o,"l 1 F..

A,

KILL OUTPUT.

SETPLEV"'O.
SETUP FOR
RUNNING CORE
RESIDENT ABUCO
ROUTINE.

IH"!lA\"L.,uW

ADJUST POINTER
FOR TTY TABLE.

tErMc,vo!
F;'f..oi'\

QuEUS,
S",j\'f\I~ (.oLe)

C.LEAI.

·"et.\.
Use

:toP

~

"~<:l.TI~" ~

kiLL.

IF

IiSa~

ov,,:

ftLG

p~t!''';';N'''''

S<.a.AfC.tt P~(;4it~
IP

cit

... 6L.L.O

A,.. ..THq~

U:'.:~ 's

L.e><'KeD

r'~o,j(MJ\

II

:'STefl"

FLOWCHAP.T

Aa"~r~

."'

Si:T Pl\lo~IT'i ¢

SCHEDULER
CODE FOR

FORCED DtSCONNECT
(USE R HUNG UP).

REMove USER
FROM aucus.

CLEAR ABORT
FL~GS.

AN ENTEA
STATEMENT- HAS
TIMED OUT.

SKiP RJ!START
MEANS ENTER
TtMEOOUT.
" -_ _ _ _ _......1 - - -

RS·rR .... ASTA+1,

FLOWCHART
R n-F

,~

SCHEDULER

A LINE HAS BEEN
ENTERED FOR AN
IDLE USER.

------------._ .... _"------_....

PRINT"???"

?PLEV

~O

PRINT "PLEASE
LOGIN"

SET ?RSTR FOR
SYNTAX.

PRINT LINE
FEE'C.

STATUS-+, SYNTAX SeT B
FOR INSeQ.

TELL COMMUNICATfONS
PROCESSOR THAT
ANOTHER LINE
IS ALLOWABLe:

FLOWCIlART

SCHEDULER

COME HERE
WHEN A VALID
COMMAND HAS
BEEN FOUND.

Cl£'ftR
""Ar~ Mone

FLAG-

CHANGE COM- .
MAND TO -rAPe

eRltOR PMS!NT··

CLEAR TAPE
ERROR FLAG.

e
FLOWCHART
10 of 13

SCHEDULER

SET PROGRAM
STATUS.

II

SET STARTING
ADDRESS IN
LIBUS.

?PLEV

~2

SET B ~?LINK
FOR INseo.

SET STARTING
ADDRess.

?PLEV

~1

SWAPR

---- ----p.-------..
THIS ROUTINE
PREPARES THE
PROGRAM ON
THE TOP OF THE
QUEUE TO RUN.

SCHEDULER

5 I C.KP

SAVE DtSC 8USV

FLAG IN'TTY
TABLE.

WRITE OtJTPR~
GRAM '''' C-...A!.
MAIN"'O

FLOWCHART
12 of 13

SCHEDULER

RETURN

SMAIN +--1
INITIATE
READING
LIBRARY
PROGRAM.

e

e

COMMUNICATION

~ETwFE~

4-5

SYSTEM MODULiS

Therp.

six system mOdulps th~t communic~tp. Nett' each other
ways:
t~e elsc rlrtvrr.
lin Processor driver, syste~
console oriver. scheduler. HASIe. and system I lorary routines
(HELLO. ~YE. KILLIu, etc.).
~rp.

in

v~rious

Any section of
(mov,~o-~e~d)

t~e

elSC

Syste~

m~y

transf~r.

c~1

I the nlSc'nrlvpr' to perform ~
Pdra~~t~rs are oassed to t~~

Thr~c

or ivpr:
A

=,uointer

to elSc

a~~r~ss

(thp corp aodress ot e t~o ~ord
oisc bloc~ numoer et
Which the tr~nsfer is to beqin)
IO~lc~1

f-4

= core

(bits 14-0 - co~e address at
Nhlch trdnsfpr is to oeqln; bit
l~
i for rp.nd from diSC to
core; vits 1~ = 0 for write from
core to ,-jisc)

~orJress

=

= the

of thp. nUMner of words to oe
tt"te dr iver Ni II cause no tr~nsfer. but
will oositicn the dCJurooriatp disc unit fl\t th~ soecified blOCK.

T~p.

v~rleble

tr~nsf.err~d.

The

~ISC

MWO~u

neQ~tive

If MWtJ!;U>=O.

orlv'er

is celled by ..JSt-i UISCA,.I.

Th~ driver determines the 10aic~1 nlsc on whic~ the ~pecified
blOCK I ies. and, It th~t 10oic~1 diSC is pre~ent on the system.
ornco~ses
the requested tr~nsfer.
whi Ie e request is bein~
orOCPssed ~n~ transfer t~~ina ot~ce, the orlver OUSY fl~e. ~~USy,
is s("'t to -1.
If the "rlv,?r IS c~lled whilp MfjUSY IS so set, it
wi I I return without cOlne anythino.
Jf the diSC OIOCK number
O~SS~rlto tt"te nriver OOPs not
I Ie on onp. Of t"e discs oresent on
t .... p, system, the r.rr .ver Will jncrement the return c!lddresS by one
~n~ return ~it"out dOlnq ~nvthjna.
If the nriver accepts the
rPQUp.~t.
it v- ill .ncremE=!'nt t~e return ""oorp-ss :lY two and return
~ft~r orocessine Ot
the r~ouest has b~en initi~ted.

A Movlnq M~~d else transf~r tnvolv~s two steos:
OOSitjoninQ the
to the correct dr~M c~ the dtsc ~no c~rforming the ~etua'
c1;,t .... trtolnsfp.r.
Th,~
driver returns to j'ts cc:'1 ter w,",i Ie e~Ch
o~ these
is <;lOlnq on.
COmrnl=!nd channel interruots return control
to thp. driver ~hp.n the oo~r~tions arp comol~tp: t"e driver checKs
for successful comclet,on of the oopr~tions before oroceedinQ.
he~ns

e.se

4-6

sin' 1 I e ci 13 t c!I t ran S fer 0 n a (1 I sec s,n not aut 0", a tic a I lye 0 n tin u e
from one cylinder to the next.
The 7~Ou diSC has the further
restriction that a transfer cannot cross the IImld-cyl Inder n
bounct~ry
(between trac~ 1 and trac~ 2). when·a data tr~nsfer
rpcuestoo whiCh crosses one or more o~ these boundaries, the disc
-driver br~aks uP the transfer to .conform with the restrictions.
fl,

.S

When the driver completes hand' tng a reauest and returns to the
I I p.r, ~HlJSY is set to I nd i cate the o.u~come of the. transfer as
follows:

C~

0:
1:
2:

3:

The requestea tr~nsfer has been successfully completed.
The transfer has f~i led; the seeK (cosltion) operation
could not bPcomolpted.
T...,e trdnsfer. hdS fni 'ed; the nata transfer was
unsuccessful.
Th~ transFer hnS fai leo; p~rt of the data
lies on. or
woulC'S oe written to. a disc' whiCh IS not cresent on
the system.

COMPlete oisc
SPQupr"'tce:

trans+~,..

A

.JS~

Celn

be

Pf!!rForrned by the fOllowing

DISC~.I



LOA r-1RU:;'Y
SSA
~MP

-;s.-2

SZA



Th~
~n~

rlisc driver does not ~OOlfy thp. contents o~ MWORD and tne A
reolsters. lhe system never suspends ~ orogram for a disc

~

tr~nsf.er.

4-7

SVc)Tf.M CONSOLI::

The

console oriver ~ajn~jns three flaqs. TJ~Fl. lJ5Fd. and
which netermines Its st~tus.
Tne meaning 0+ these flaqs
follows:

syste~

T1~F3.
ar~

f)~IVt:.~

~s

•• 1- driver
=
Norm,::, I I y o.

is buSy. l) othPr""lse
t t is set to -1 bY t .... e
clusion 0+ inout. .enn clecltred to u
NorrT'le I I y o. it is set to -1 by th~
Inout. ~nd cle~reo to u
clusio~ of
output nBS heE?n initiated.

T3SF 1 :
T3~1o="2:

T 3Sf 3:

ThR

co~t)lnpC

Fl

F2

~j

0
0

0

-1

0
-1

0

-1

-1
-1

-1

vRlues ot

tnes~

fl~os

are

~ore

drtver at the conexternally.
dr i ver at tne conby tne drtver after

slanlflcant:

.

[Jr I vpr
~
ccc~ptinc
inC'lut
lnout COmlllbr'lC1 receive,., lItr'lc:l I s belno orocessecte cut
outPut h~S not hefJn Inltic!l'teo.
0 out out termln~ted frorT'l I! SystP,,., commt9nd -"hicn Is to be
reinltiated.
0 outoutting
0 outouttina. .. t thp. ene:: of which the current syste"
comM.;:,nlj Vw I I I be reinlticllttp.rl.

0

= - 1.

the 0 r I v e r w I I, I not .e c c e eta n yin 0 u t •
Tn i s
SysteM 'Ibr~ry proQr~~~ tnat t~P.y wi I I not be
int~rfered witn.
TheSe routines ~re ~p'sponsloIQ for c'a~ring
F? Ai"',,"n tney cc!11 tha "r i ver .for thl) last tiMe.
Fi: .dnrl tne
consol~ st~tus
(T3b~T)
~re cl~ar~d
if e K~y i~ struc< on t~e
co,",!:nle durino outout +or certnin ,console routin~s.
TnlS ~i I
eft-p.ctivPly t~·r"'lncte suc,,", routines -=ts f>I;'· if ~et indicates a tp.rm;nct console
Normally U,.} when d ~otor Shutco~n Is In orogress
Nor~al1y 0, 1 when·a motor shutdown is
In progress
Contains th~ ~otor st~tP. 0 is off, 1 if on
Cont~ln number of f' 115
left to·outout
~it

TO:

Tnsu:
r~ITST:

TFC~T:

T., e
A:
~:

c ~ I lin q S? Que nc e is:
bit 1~ = 0 .if C~Lf is to be aooended. oits (14:0) - # of
Char s.
oit 15 = 1 If ~unchinq is to taKe place in ~ddltion to
orlntin<;l. bits (1,+:0) = core r::tocrpSS of outout buffer •
.. J S ~

The

TTY 35 • 1

uses the ~b word ~uffer T3~RF as ~n inout ouFfer.
of the I iorary rout ines use it For output, and occasionally
For t~~oorery storc~e bet~epn lines of outPut.
~r.vpr

~ost

4-9

SYS1~~

~kOCf~~Ok-I/n

~HOC~SSO~

'CO~MU~lCATJO~

4-10

The bl~Ck d~agram for the Processor Interconnect Is on the
second page ~ol lowing.
In the IDLE state. the 'nter~ace cardS
are set UP as follOwS:
Cl (CHI)

CONT~OL
"L~'"

C~(CH~)

&

ENOCOU~:

CONTROL

~

ENCOD~:

FLAb:
lk 1/0

PROC~SSO~

Numeric
Value o+-

Oe __ Cgc.e

~oim~olc

0
1
2
3

poe
STi:.

4

PC .. ·

5
6

MI~kO

7

MIKkO

Process output character
start ENTER Timing
Subt~Qe information
Phones timing parameter
Perform C9ntrol funct.on
Process output string
Micro COde grouQ 0
Micro COde group 1

~OfmgOlc:

Oe~C:l:let12o

Mlt 0). ~hen tne response is affirmative the SP wi' I
send the message via ~os.

The al locate device COmmand contains a logical unit number In
bits 12 tnru 7. The Second word Of the command indicates the
size o~ the bu~fer which Should be at located for the soecified
device.
The IO~ returns a one word response ;ndicatlng success
(resoonse
0) or deVice busy (response <>.0). TniS command is
sent whenever an ASCII file is opened on a given lOP device.

=

4-21

RDV

The release device command contains a logical unit number In bits
12 thru 7.
This commQn~ tel Is t~e loP that the speci~led device
is no longer needeo and that al I remaining cuffers for the deVice
should be written and then de-al loc~ted. The lOP returns e one
. word response. See section on 1/0 responses for pOssible return
v~lues.

8L..8

The alloc~te b~.fer comm~nd contains a log.cal unit number in
bits Ie thru 7.
The second word of the command contains the
lenqth of the output buffer In bytes. The IO~ then returns a
one word response.
1+ the responSe 's zero. then the SP sendS
the output buffer to the lOP via DMA. See section on 1/0
responses for other pOsslole return values.

The transfer input buffer command contains a logical unit nu~oer
in bits 12 thru 7. lhe lOP returns a one wore response
indiCc!'ting whether It hes a full input buftp.r. on the sDecl~ied
device.
If it aoes (~esconse
0). then the SP ac~nowledQ~s the
response (STC.ClF) and then the next word ontha send channel is
the size of the buffer (in byteS). After acknowledQing the
buffer size the S~ transfers the Inout buffer using DMA.
The SP
aCknowlee~es receipt of the huffer by another ~TC. ClF.

=

tU~S

The h~CKspace terminal cuffer command cont~lns a port number in
bits 1~ thru b. lhe Commen~ causes the IO~ to oackspace the
speciflee terminal's .ncut buffer pOinter one Character.
~OO

The ki I I device output command contains a 10qlCdi unit number in
bits 12 thru 7.
This command tells the lOP to comPletely pur~e
and de-at locate aMy buffers or activity on the specifjed deVice.
USURllv sent due to unrecoverable 1/0 f~i lures or abnormal
proqram terminetron.

The fetch next Character commend cont~ins a port number in bits
12 thru 8.
The lO~ returns a one word res~onse whiCh is the next
character in the speCified Dort's incut buffer. The Input
bu~~er pOinter ,·s 6dvenceo to the oe')(t-cnaracter.

4-22

~JE

The remot~ JOb entry command contains a word count in bits 12
thru 7.
The ~ommano *s sent when the system operator types an
RJE command on the system console.
The word count is the length
of the ~essage.
The lOP always rejects the R~E command the first
time.
The lOP
I I send 'WRU when It Is ready for the meSSage. '
The RJE'command IS then guaranteed to be accepted and the ~essege
IS then transmitteo to the lOP via DMA.

w.

8~I

The user ls aborting commdnd contains a cort nu~ber In bits 12
thru 8.
Th,s commano informs the lOP that the user program on
the spec.fieo port being aborted oue to the user hitting the
B~EAK

~~Y.

215
input str.no Command contains ~ port numoer in bits
Tne secone word Is the buffer lenqth w~iCh the
specifieo port has allocatee for )nput.
The IO~ reSPo~dS with
the.~ctual
numoer Of Characters it haSt WhiCh ~. I I be ~ th~
specif.ea·buffer lenqth.
Tne S~ aCKnowledqes the ouffer length
with ~ STC. ClF and proceeeS to transfer the Input buffer via
OMA.
The transfer is acknowledged with an adoltlona' STC. ClF.
If the lO~ actually hed more characters than would fit in the
port's S~ buffer, It WI t I transfer one buffer ful I and remember·
the buffer position.
~ SUbSequent PIS reauest WI» I receive
Charactprs starting from the pOSItion that t~e previous request
finiShed.
T~e

12

crocess

tnru~.

SCI
The Sp.nd core Image comMand contains a word count in bits 12 thru
7.
The second wore of the co~mand i~ the starting address.
The
lOP res~onaS by senoinq the specified number of worrds. starting
w.th tne specifieo aOaress.
The sP. receives the reSPonse via
UMA.
lnis commano js sent whPn the user AUUO uses the DUM~
com~and to oump the lOP memory.

4-23

RLB

release buf~er command cont~ins a cort number in bits l~ tnru
T~iS command is sent to ~orce t~e lOP to print and release
any output which is in ~ buf~er ~or the specified terminal. This
c~mmand IS sent by the SP whenever
it wishes to enSure th~t al I
user outPut has been printed 'i
whenever a .port is swapoed
out) •
T~p.

A..

.e.

sso
The system shut aOwn comm~no is sent to inform t~e IO~ tnat the
5 yst em i s be i ng Shut down due to the syS tern oper ator aexecut I ng
the SL~EP command.

see
The save buffer pOInter command contains a cort number in bits
12 thru 8. ThiS command tells the lOP to save the current value
of the terminal input buffer Dotnter on the specified port. The
pOinter value can be restored by the RBP command. These commandS
al low the SP to reaa the next ~ew characters in the bu~fer (via
FNC) and to return to the current oosition without sendIng
multiole BKS'S.

Bee
The restore buffer pOinter command contains ~ port number in bits
12 thru~.
This command tel Is the lOP to restore the terminal
input buffer pOinter On the specifl~d port to the value saved via
a SSP.

The tr~nsmtt console mess~ge command tel Is the lOP to send a
console message to t~e SP. The transfer is hanoled vt~ OMAG
Th'S comm~nd is sent by the SP after the S~ has received an SCM
comm~nd from the IO~.

4-24

The PoSSible values are as

SP.

-3
-2
-1

U
1
2
3
4

~ol

lows:

No data available on RJE or LT
eno-of-~ile

not reaoy
successful
oevice not ready
device error
attention needed
redd/wr,te fat lure.
bu+~er

op~ration

In the case of a -1 resoonse. the lOP wi I I send a WUU for the
aooropriate dev,ce when a bu~fer beCOMes aveilable.
I~ the
responSe ;s greater than O. the S~ wi II eventually send either an
ST~ .(,n wh'Ch case the lOP wi« I
sena a wUU When the condition has
been fixeo) or a KUO.

4-25

I/O

P~OC~~SO~

COMMU~lCATIONS

TO SYSTEM

P~OC~SSOH

The system processor receives communications ~rom the lID
processor on lID Channel Iv.
The system processor ignores
inconsistent communications, e.g. ~ccects a I ine of input only
when the user's status IS IDLE or INPUT wAIT.
The receive driver
communicates with the sCheouler by setting th~ ~ACr bit in the
?FLAG word o~ the port's teletype tahle and settinq the
acorocrlate status.
COMmunication re~uests initiated by the 1/0 ~ocessor are divideo
Into three general Qroucs. user port commandS affect one
perticulbr port dna incluoe HVL. HLP, HLL. AO~. ~FL. ~FE. ~TO and
UHU. Another group o+~ects operation o~ the R~~ faci I Ity and
inclu~es
~CM,
AU~.
kUk. and ~AU. The remaln,nq commana. WUU,
concerns oceration 0+ ~ non-shareab'p. deVice.

4-26

~UME.RIC

VALUE OF
QI: __ COUE.

~~I:.~(J~lC

Of..SCBleilCt:.I

0

HVL

Have a

1
2
3

HLf-i

t1~ve

6

HLL
(UnUsed)
(unuSed)
(UnuSed)
(unuSed)

7

MIKRO

4

5

line

a line - par j tv error
Have a lane
'ost cheracter

Micro Codeo

4-27

MIr

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.3
Linearized                      : No
XMP Toolkit                     : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:56:37
Create Date                     : 2002:07:13 16:57:18Z
Creator Tool                    : g4pdf
Modify Date                     : 2009:08:17 17:12:22-07:00
Metadata Date                   : 2009:08:17 17:12:22-07:00
Producer                        : Adobe Acrobat 9.13 Paper Capture Plug-in
Format                          : application/pdf
Document ID                     : uuid:e0909678-de17-438c-b9e7-ce971fd9b1ad
Instance ID                     : uuid:4b42847a-5ea1-4f90-8b69-07c1430e720d
Page Mode                       : UseOutlines
Page Count                      : 737
Creator                         : g4pdf
EXIF Metadata provided by EXIF.tools

Navigation menu