---I/O and ---I/O Conversion Routines
~----
-- -- -- --- -- ----
---Specia I Disk Routine and Disk Sector Buffer
~----
-- --- --- ---
Psuedo-TV~
Figure 26. Storage Layout During Execution of the System Maintenance Program
SECTION 8: THE SYSTEM MAINTENANCE PROGRAM
START - Initializes the pseudo-TV and the IL subroutines; obtains from the Disk Communications Area (DCOM) the mod-ification level and the version number and types them out; determines the principal I/O device for the system from COMMA; reads a record from that device.
PTSW1 - If the input is from paper tape, converts the input record from PT TC / 8 to IBM card code.
CDRT1 - Determines if the input record is a valid System Program header record.
HRCVT - Extracts from the first header of a mod-ification the total record count for that modific ation.
HDRWD - Converts to binary the word count, the relative word number, and the sector address obtained from the input header.
MLEV Converts to binary the version number and modification level obtained from the input header.
SlSUB Turns off the disk non-write switch, enabling the program to make modifica-tions to the Monitor Programs.
HDCHK - Checks for the names FOR, ASM, SUP, and/or DUP in columns 1 through 3 of the System Program header record;
continues accordingly.
SWFOR - Determines if FORTRAN is present as a Monitor Program; if not, turns on the disk non -write switch.
SWASM - Determines if the Assembler is present as a Monitor Program; if not, turns on the disk non -write switch.
VERSN - Checks the version number and modifi-cation level from the input header against those found in DCOM. If the new num-bers are valid, the program proceeds;
if not, an error message is printed.
ASMSW - Computes an absolute sector address for an Assembler modification from the relative sector address obtained from the input header.
SUBHR - Checks for a Subroutine header (the name SUB in columns 1 through 3 of the input header). If the name is found, the program continues; if not, the program initializes for a return to the Super-visor.
MODl \Varns the user that an attempt is being made to update the Monitor to modifica-tion levelland then WAITS. If PRO-GRAM START is pressed, the program continues.
RDISK+2 - Updates the modification level in DCOM alter a modification has been success-fully completed.
ENDOJ - Types the update complete message.
ENJ02 Types the version number and new mod-ification level; returns to the Supervisor.
CKSMG - Determines that the checksum contained in the input data record is correct. If incorrect, an error message is typed and the modification is terminated.
CSMOK - Moves the modification data from the input data record to the disk sector buffer. The word count from the data record and the relative word number
148
and total word count from the header record are used to make the modification.
NWSW Writes the modified sector onto the disk from the disk sector buffer when the modification is complete. This routine then reads the next input record. If the input is from paper tape, the PTTC/8 is converted to IBM card code.
If the disk non-write switch is on, this routine does not write the disk sector buffer onto the disk.
MCRCK - Determines if the input record is a Monitor control record. If it is, the program returns to the Supervisor; if it is not, the program terminates with an error.
A2P03 Reads the sector to be modified from the disk into the disk sector buffer.
RDATA - Reads an input data record, either card or paper tape.
PCKNG - Packs 80 card columns into 60 binary words.
Chart AA. The 1130 Monitor System User Programs
Assembler Program
Supervisor
FORTRAN Compiler
Subroutine Library
Disk Uti lity Program
FLOWCHARTS
••••• AZ···.
• •
• SKELETON •
• SUPERVISOR •
• •
• •
•••••••••••••••••
X
• •••• 8Z •• •••••• ••
•
•
• • PRESUPERVISOR • •
• •
• •
•••••••••••••••••
:X ... .
·.· .. CZ··· ..
X•
•• PHASE A - •
• CONTROL RECORO •
• ANALYSIS •
• •
•••••••••••••••••
X
x··· .
YES.*. .•. . •.
01 •• OZ •• 03 •• • ••••• 04 •••••••••••
•••• • ••• NO •• ·:OR, DUP:· •• NO .PA~S~~BtYP:· •• NO • PRINT
•• XEQ ••••••••••
X..
OR ASM •••••••••• X •• COMMENTS, OR •••••••••• x ERROR•• •• •• •• •• TEND •• • ME SSAGE
* . . *
..
• YES..
• . . •..
• YES..
* . . *.. ..
•. ... .
··.·.El···
X•
••
•• PHASE B •
• •
•
••••••••••••••••••
.•.
xFl ••
.• *.
X
••• ••• EZ.···.··· •••
LOAD NEEOEO MONITOR PROGRAM
• ••••••••••••
• •• ·E3 •••••••••
• • MONITOR •
•••••••• X. PROGRAM •
• • EXECUTI ON •
• ••••••••••••••
• ••••• FZ···.··
• ••• F4 •••••••••
•• .LOCAL •• NO •
••• ~N~~~t~s6R •••••••••••• X •
CALL LOADER AND LOAD CORE-LOAD
• • CORE-LOAD •
• ••••••••••••••••••••••••••••••••• X. EXECUTION •
• X • •
*.
..
• YES. .
.*••••••••••••• • ••••••••••••••
i .*. .* .
...•. Gl... GZ .. . .... G3... G4 ..
• • .* *. • • .* *. .
• PHASE C - . •• •• NO • PHASE 0 - . •• COUNT •• YES.
• INITIALIZE ••••••••• X.. .FILES •••••••••• X. LOCAL/NOCAL ••••••••• X •• EQUAL ZERO ••••••
• TYPE RECORD • •• •• X . PROCESSING. •• •• X
• PROCESSING • • • • • • • • • • •
••••••••••••••••• ••
• YES•• ••••••••••••••••• •
••• • NO:X ... .
• • NO
X •••
... HZ...
H3 ••• • PHASE E - . • •• .* COUNT *. •• YES •
• FILES ••••••••• X •• EQUAL ZERO ••••••••••••••••••••••••••••••••
• PROCESSING. •• ••
• • * . . *
••••••••••••••••• •
• • • •Chart AB. The Supervisor
150
... Bl···.·.··
READ IN COLD START
• •
•••••••••••••
.... ··C1···
X READ IN • OISKO AND SKELETON • SUPERVISOR•••••••••••••
R3 X
... 01···
.SAVE CORE ABOVE.
PRESUPERVISOR
• ON DISK •
...
GETA X
... El··· ... ·.
• LOAD •
PRESUPERVISOR
•
••••••••••••••
ISETS ••• X F l · •
• * *.
•• •• NO
•• CALL LINK ••••••
*. .*
*.
....
• YES .*PREB X
.• ·.··Gl.··· •• ·.· ••
• SAVE CORE BELOW.
PRESUPERVISOR
• ON DISK •
•••••••••••••
:X ... :
•• ••• ·H1 ••••••••••• X
LOAD •
1/0 ROUTINES
•
•
•••••••••••••
···Jl···.···.
X•
•
READ IN PHASE A
•••••••••••••
•••••
• 1\;\ X •• t i l .
•
• ••
••••• A2 •••• • •••••
• MaN •
. -.-.-.-.-.-.-.- .
••• X. CALL EXIT •
• ENTRY POINT •
•
•
•••••••••••••••••
Chart AC. The Skelton Supervisor, Presupervisor, and Cold Start Routine
••• •• A3.· •••••• ••
• LINKM •
.
•-.-.-.-.-.-.-.-
CALL LINK.
•• ENTRY POINT •
• •
•
••••••••••••••••
X
• • • •• C3 ••••••••••
• •
• STORE NAME •
• OF CALL LINK •
• IN COMMA •
• •
•••••••••••••••••
f·* f,lit*
•••••
•••••
•••••
•••••
... A2··.···
FRC" DUP OR • •
THE SUPER V I SOR • •
•••••••••••••••••••••••••••••• X. PHASE 0 •
• •
• •••••••••••••••••
•••••• e2.· •••••••• X
• •
•
PHASE 1•
••
•••••••••••••••••
• •ENTRY PCINT - APIOO.
READS PHASE INTO CORf.
GETS THE MAI~LINF
HFADER, 1~ITIALllES,
lOADS LOCALS, ETC.
X
••••• 03.· •• ••••••
• •
•
•• • • • • • • • • • • • • • • • e _ • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • x* PHA S E 2 •
••••• El •••• • •• • ••
•
•· . .
•••• X. PHASE 3 •
•
•
•
••••••••••••••••• •
••••• Fl •••• • •••••
• •
· . .
•••• X. PHASE 4 •
•
• • •
•••••••••••••••••
••••• GI··.···
•
•
..
•••• X. PHASE 5.
•• •
• ••••••••••••••••• •
••••• Hl···
•
•· . .
•••• X. PHASE 6 •
• •
• •••••••••••••••••
•·· .. ·Jl·· .. ···
• •
..
•••• X. PHASE 1.
••
•
•
••••••••••••••••• •
PROCESSES PEAOER RECORDS AND Il RQUTINES, lOADS SUB-ROUTINES BY CLASS CODE.
CUNTROLS LeADING AT
CU~PL[TION OF
lOAD-~~~~E~Vov~~tl~ES IF RFQUIRED.
PROCESSES SOCAl AND lOCAL SUBRCUTINES FeR WADING.
SELECTS DISK 1/0 ROUTINE, LOADS IT
I~TO CORf.
Chart AJ. The Loader - Disk System Format Load
• • ••••••••••••••••• • •
• ·STORECI
/I XEQ
···F4···.···
X• •
•
•
• DUP •
• •
• •
• ••••••••••••••••
STORFS RfLOCATED ANO CONVERTED PROGRAM IN PFRM~NfNT DISK STORAGE.
• TO ~EXT JOB
•••••••••••••••••••••••••••••••••••••• x
... H4···
X•
•• •
• PH~SE R •
•
•• •
•
••••••••••••••••
••••• J4 •••• • ••••• X
• •
• •
• SUPFRVISOR •
•
••
•
• ••••••••••••••••
RFAOS ALI BUT FI RST SFCTOP CF PROGRA~
FADM CIB INTO CrRf.
READS FIRST S~CT~R flF PflOGRA~ FROM Clfl INTO COkE.
• TO EXECUTION
•••••••••••••••••••••••••••••••••••••• x
FROM THE SUPERVISOR
••••• B2 •••• ••• ••• X
•
••
•
•••••••••••••••••••••••••••••• X. PHASE 0 •
· .... 01···· •• ••••
•
•..
•••• X. PHASE 7.
•• •
•
•
•••••••••••••••••
• •
•
••••••••••••••••••
SELECTS DISK 1/0
~2¥~I~~RE~OAOS IT
Chart AK. The Loader - Core Image Format Load
158
ENTRY POINT - BP200.
PROCESSES CORE IMAGE HEADER, READS PHASE 8 INTO CORE.
/I XEO
••••• 04 •• x • • • • • • • •
• •
• • PHASE 8 • •
• •
•
•
•
••••••••••••••••
.·.·.E4 .• ··· •....
X•
••
• SUPERVISOR•
•• •
• •
•••••••••••••••••
READS All BUT FIRST SECTOR Of PROGRAM
e~~~ :~~~~ ~~E~IB
INTO COPE.
READS FIRST SECTOR OF PROGRAM FROM :~~1? ~~E~IBU~~~O CORE.
• TO EXECUTION
•••••••••••••••••••••••••••••••• ~ ••••• x
••••
• •
• At •
•
••••
• ... Al···*·. X• •
• •
• OUPCO •
•
••
•
•••••••••••••••••
Chart BA. DUP Functions
... B2··.· •. · .•. •
X•
• •
• nCTl •
•
••
••••••••••••••••••
...
xC2 •• • •••• C5 ••••••••••
• * *. • •
•• •• YES • •
*. DEFINE •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• l(. OEFINF *
te. • • . * .
*.
.. ..
.* *. ..•..•...
•• NO
.
x..
I)Z •• • •••• 04* ••••• * •••
• * *. • •
•• •• yr S • •
•• DELFTF •••••••••••••••••••••••••••••••••••• X* DELETE •
*. *.
•• ••
* NO .• .* * .* . • ••••••••••••••••
• *. x
EZ •• *****F3* •• ** •••••
. * *. • •
•• •• Y f S . •
•• DUMP •••••••••• X. DU~P •
*. * . . * *. •• .* • • • •••••••• * ••••• *. • •
• NO
.*. x
••• * x
* •
• At •
• •••• •
* ••• x
•
•* Al .
• • •• * •
••••
x•
•• til •
• •
•••
•GZ •• • •••• G5 ••• * ••••••
.. .. . .
•• •• yrS • •
*. OUMPlET •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• X. OUMPL~T •
*. .* • •
*. •• •• .* • • •••• ** •••••• * •• * *
• NO
.•.
xH2 •• ..**.H4 •••••••• *.
• * *. • •
•• •• YES • •
•• DWAOR •••••••••••••••••••••••••••••••••••• X. OWAnR •
*. *. .* .*
* . * .
•• •• .** ••••• * ••••••••
• Nll
...
xJZ •• • •••• J3 ••••••••••
• * *. • •
•• •• Y F S · •
•• STORE •••••••••• X. STORF •
*. .* • •
*. .• • *
•• ••
•••••••••••••••••
• NO
.... KZ··· •. ···.
X•
•• ERFOR •
•
••••••••••• * ••••
••••
x• •
• At •
• •••• •
••••
x•
•• At •
• •
••• •
••••
x• •
• At *
• • ••• *
NYETC
•••••
• BC •.***.
• (>0 •DELOO
•••••
•••••
• BG ••••••
• BH •
• oz.
• •
•
...
xHZ ••
.. ..
•• •• NO
•• CORE IMAGF ••••••
•• PRUGRAM ••
*. * •• * .*
• YES
.····.CZ ••••••••••• x
• LET ENTRY ADJUST ..
••••••••••••• •
:X •••••••••• :•••••• CZ··· •••••••• X
• USE:P/FIXE/) AREA GET NEXT •
.PROGRAM •
SECTOR
•••••••••••••
••••
· ..
• E2 •• X.• •••• X •
•••• •• E:Z.· ••• ••• •••
• WORKING STORAGE GET NEXT •
.SECTOR •
•••••••••••••
••••
·
• FZ •• •.. •
X.••••
X••••• FZ·.· •• •••••
·
• ~GVE INPUT.
•• etJFFFR TO •
• UUTP~T SUFFER - .
• weRC BY wOR/) •
•••••••••••••••••
.•.
xGZ ••
• * *.
YES •• •• NO
•••••••••••••••••••• OUTPUT FULL ••••••••
X
••• ••• HI·· •••••• •••
• PUT OUTPUT eUFFER TO
• USfR/FIXED • AREA
•••••••••••••
···Jl···
X• GrT NFXT SF.CTGR OF
• USEII/FIXED • AREA
•••••••••••••
•••• x
• •
• H3 •
•
••••
•Chart BH. DUP - STOREMOD
166
*. .*
*. •• • * .*
•
• •
• H3 •••••
•
•••• • : ... x:
XH3
.•.
••.. ..
•• •• NO
•• END OF JOB ••••••••••••••••••••
*. •.
. ...
• YES .* .*•••••• J3 ••••••••••• X PUT LAST • SECTOR TO
• USER/FIXED • AREA
•••••••••••••
•••••
x• 88 •
• OZ. • t
t
.•.
xJ't t •
.* *.
•• •• NO
•• INPUT EMPTy ••••• '.
*. .*
*. *. . • .*
• YES
••••
..
•• X. EZ •.
•
••••
•••••
i• •
• FZ •
• •
••• •
Chart BI. DUP - DUMPLET
• CG""'UNJCATHlN FlfT .. HFAr.I-~ •
Chart BJ. DUP - DW ADR
168
•••••
tllJ •
• • • AI. •
wAOIlC X
•••••• AI •••••••••••
• PEIIC LAST SECTGR OF USEP AREA
•••••••••••••
••••
...
..
• I'll •• X.
•
.... • .
"'OSAf. X
... Al··· •...
• •
• INCPE~ENT •
• SfCTOR ArORESS •
• (SAO) BY 1 •
•
••••••••••••••••••
.•.
xC1 ••
.• *.
•• NE~ •• YES
•• CYLINDER ••••••••••••••••••••
+.
.. ..
* . . * .*• NO
:x ... .
PUSAC X x
•••• ·Cl ••••••••••
•
•
• LOAD PHOPER ...
• CATA TO •
• 110 AItEA •
• •
•••••••••••••••••
•••••• Fl ••••••••••• X ,"PITE 110 AREA
TO DISK
•••••••••••••
••••
x• • III • •
· •••• .
•
02
.•.
••... *.
•• HIGHEST •• YES
•• SECTOR BEEN ••••••••••
•• wRITTEN ••
....
•• ••.
.SS •....
X• NO • 02.
•••••• E? •••••••••• X SEEK TO • NEXT HIGHER
TRACK •
•
••••••••••••
. ..
xF2 ••
.* *.
• NO.. *.
•••••••• DEFECTIVE ••
•• TRACK ••
•.
....
• YES .*••••• G2 •••••••• •• X
• •
• Aon 7 TO •
• S~CTOP ADDRESS •
• (SAO) •
•
•
•••••••••••••••••
••••
x• •
• 81 •
• •••• •
• • •
•••••
STRTe
Chart BL. General Assembler Flowchart
170
S TR T('l
••••• e2 ••••••••••
• •
• C~Tt~MIN~ •
••••• 81· •• •••••••
• •
• ~AVF rLP~~, •
• XEQSw AN~ •
• SFT Nr~-l[kO •
• •
•••••••••••••••••
• •• X. SY~P.Ol TABLf •
.· ... C1····.····.
X•
•
• SET UP •
• INTE:I<RUPT •
• TV •
• •
•••••••••••••••••
•••••• U1 ••••• ••• ••• X OISK1
•••••••••••••••••
LOAO• PHASE <"/ •
•••••••••••••
... El.··.·· .. ··.
DISKI X•••••••••••••••••
LOAD PRINCIPAL• PRINT ISS • SLBROUTINE
•••••••••••••
•••••• FI····.··· X OISKl
•••••••••••••••••
LOAD PRINCIPAL• 1/0 ISS • SURRCUTINE
•••••••••••••
Chart BM. The Assembler - Phase 0
• L(~ITS •
• •
• ••••••••••••••••
···C2 ... .
OISKl ~• ••••••••••••••••
~I{ITE BLANKHf.\nl::R eN FIRST SfCTCP or CIIl
• •••• * •••.••••
.•.
xDZ ••
•• * •
•• 3~ SECTORS •• YES .WCRKING STORAGE •••••
•• A\lAIlAIlU.·
+. .*
••. * • NO
. ... ··EZ.· •••• ····•
ERNTO ~• ••••••••••••••••
PRINT ER~ORI"I::SSAGE
•
••••••••••••
Arl.... FZ··· .
X• fXIT TO THE •
• SlPER\lISOR •
• ••••••••••••••• •
... GZ···
FUPR X•••••••••••••••••
LOAf)• PHASE 1
•••••••••••••
•••••
• ao • x• Al·
• • •
FlIPP
*****
Chart BP. The Assembler - Phase lA
174
PIAX
•••••
• BP •
• AI. • •
•
.•.
xAI ••
• * *.
•• •• YES
•• CARD 110 ••••••
*. .*
*. *. .* .*
• NO
.•.
xBl ••
.. ..
NO.. ONE ••
•••••• PASS MODE ••
*. •. .* .*
* •• *
• YES
••••
x•
•
• El •
•
•••• •
•
•••• •
• A2 •
• ••••
•• •••• A2·.···.···. X
• SET ENDST • .EQUAl TO PRINC ••
• PRI~T ROUTINE.
• END •
•
••••••••••••••••• •
• •••
·
• B2 •• X.• •••• ..
• X• •••• B2 ••••••••••
• •
.INITIAlIZE FOR.
• SYMBOL TABLE •
• OVERFLOW •
•
••••••••••••••••••
••• x FTCH2 X
(1 •• • •••• C2 ••••••••••
• * *. • •
•• •• NO • INITIALIZE TO •
•• PASS 1 •••••••••• X. lOAD •
••
.... ••
• YES••
•• X .. • ••••••••••••••••
PHASE 2.
•: ... X:
IOMIIE X X
•• ••• 01 ••••••••••
• •
• MOVE liP •
• RECORD 20 •
• POSITIONS •
• RIG~T •
•••••••••••••••••
•••••• 02·· •••• • ••••
FlIPR
..-.-.-.-.-.-.-
• PHASE lOAD 2..
•·t •••
·
• El •• X...
•
••••
•x
elWIO E 1
.•.
••. * *.
•• •• NO •
•• PASS 1 ••••••••
*. .*
*. .*
*. .*
• YES
.•.
xF l · .
.• *.
YES.. ONE ••
•••••• PASS MODE ••
*. •. .* .*
••• *
• NO
.•.
xG I · . • •••
•• ··LISTING·· •• YES. •
•• SPECIFIED •••••• X. A2 •
*.
....
*. .* .* ... .. .
.• NO
••••• Hl •••••••• •• ;
• SET ENDST. • •••
• (SYMBOL TABLE. • •
• ENOl EQUAL TO ••••• X. B2 •
• PHASE 10 ENO. • •
•
••••••••••••••••• •
••••
.••.•••••••• x
Jl
.•.
••.. .. . ...
•• LISTING •• YES. •
•• SPECIFIED •••••• X. A2 •
*. . . . * .* • • ••••
*. .*
• NO
... Kl···
X• SET ENnST •
• (SYMBCl TABLE •
• ENOl EQUAL TO •
• PH~SE 11 END •
•
••••••••••••••••••
••••
x•
• 87. ••
• ••••
•• ••••••••••••
• ••••
.BQ • x• AI.
•
••
•• * •• • flO •
...
•••••
• 85 •
• AI·
• • •
54,.. X
... Al···
• •
• SfT eLANK~ •
• IN SIIRF.A. •
• SPACE PRINTFR •
• •
•• * ••••••••••••••
• •
••••
• B2 •
• ••••
•••• x X
IH •• • •••• fj2 ••••••••••
• :t $ . .. *
•• ANY •• NO • ~rVf ~R~OR •
•• fRRCR5 •••••••••• X. ~ESSAGF TO •
•• •• • U;TPUl APr A •
* . . * • •
•• •• • ••••••••••••••••
• YES
.•.
X Cl ••.• *.
YES •• ••
•••••• 1 F~ROR ••
•• C~LY ••
*. .*
* •. *
• NO
X
••••• 01 •••• ••••••
• •
• CONVERT •
• ~PRrR CCUNT, •••••
• SET IN OUTPUT.
• MESSAGE •
•••••••••••••••••
... El···
X•
• SU 1 IN FRROR • •• COUNT. REMOV( •
• PLURAL FRCM •
• fRROPS •
•••••••••••••••••
•••• x
•
•
• B2 •
• •
• ***••••
x* • 82 • *
• • ••••
Chart BS. The Assembler - Phase 4
.•· .•. (2*.···
TV3 X..-.-.-.-.-.-.-
PRINT ERRrR..
• M~SSAGt:
•••••••••••••
• •••• 02 •• X
*· ••••••
•
• ~UVE DSF TO•
•• .WORKING 5TQRAGf. START OF •
• •
•
••••••••••••••••
....• E2.·· •• · •••• •
.RFSTORE X XEQ5~•
•• AND OUPS~ •
• •
• •
•
••••••••••••••••
.... FZ.···.
X• EXIT TO THF. •
• SLPERVISCR •
• ••••••••••••••• •
•••••
*.*.
•••••
.DISPLACEMENT •• YES
•• A8snLUTE ••••••
.DISPLACEMENT •• YES ..BEYOND 121 TO ••••••
•••••
·sw •
• AI.
• • •
nCA ••• X AI ••
.• *.
•• •• NU
•• PASS 1 ••••••
•. •. .* .*
* •• *
• YES
••••
·
• Bl •• X...
• ••••
• X••••• Pl •••••••• ••
•
•• INCREMEPIT •
• L.A.C. BY 1 •
• •
•
••••••••••••••••••
... C1·.···· .. ··· .. -.-.-.-.-.-.-
LeAC LAIHL. LDLEIL X..
REAC NEXT • J;'ECORD
•••••••••••••
•••••
• CE • x• AI.
• • •
OC?ND X
... ·.El···.··
• SCAN •
.
•-.-.-.-.-.-.-.-.
EVALUATE •• OPfRANC •
•
•
•••••••••••••••••
... Fl··.··.····
X*tNSfRT ABSOLUTF •
• I~I OR RELOCAT-.
• liSLE III FLAG.
• IN 1/0 BUFFFR •
• IPOS 61 •
•••••••••••••••••
... Gl····.··.··
X• *
• INSERT •
• CPEPANC VALUE •
• IN 1/0 BUFFER •
• IPOS q-121 •
••••• * ••••• * •••••
•••
*·~1** X••• * •• ••
• OFOUT *
.-*-*-*-.-.-.-.-.
• ~CVE OPFRANO ** VALUE TO 110 •
• BUFFER •
•••••••••••••••••
••••
..
•• X. B 1 •.
•
••••
•Chart BW, The Assembler - Phase 6
D~Ol
,,*"'*
Chart BZ.
Chart CA, The Assembler - Phase 7
(All'!
•••••
• CC •
• AU
•
• •
••••• Al···. X
•
• INCRFMFNT•
•• L.A.C. •
• BY 1 •
• •
•••••••••••••••••
••••• el •••••••••• X
• INSERT NAME •
• WORD 2 IN •
• lID P.UFFER •
• CPOS
13-1f) •
• •
•••••••••••••••••
..•.. C1···
X• r.fOUT •
.
•-.-.-.-.-.-.-.-.
NAME WORD 2 •• TO •
• CSF e~FFER •
•••••••••••••••••
••••• 01·· ••• • •• •• X
• •
• INCREMENT •
• L.A.C. •
• BY 1 •
• •
•••••••••••••••••
CllCT
•••••
x• CB •
• 1<3.
• •
•••••• Gl···
•
• SET UP SCAN•
•• FOR SYMBOLIC •
• OPERANDS •
• CNLY •
•••••••••••••••••
...
~l.· X... ·
• SCAN •
. -.-.-.-.-.-.-.- .
• COLLECT 2-~ORO •
• NAME, STORE IN •
• CLBUF •
•••••••••••••••••
···.·Jl· .... ····.
X• •
• ~ESTORE SCAN •
• TO NORMAL •
• STATUS •
• •
•••••••••••••••••
•••• 1<1 ••••••••• X
• EXIT TO THE •
• CALLING •
• ROUTINE •
•••••••••••••••
Chart CC. The Assembler - Phase 8
•••••
•••••
• c [ •• Al. * •
•
.•.
xA I . . • •••• A2 ••••••••
*.
• • • • • PALI1L •
•• •• YES .-.-.-.-.-.-.-.-.
•• X.r[~~E~TS SlMT ••••••••••• X.RFAO - PASS 1 • •
•• •• .O.,TIGNAL LIST -.
•• •• • PASS 2 •
•• **
• •
• Al •
• •
•• •• • ••••••••••••••••
••••
• NO
X
• • ••• B1· •••• • ••••
• •
• PACK .NC SAVE •
• ~N[MGNIC •
• UP COOt •
• •
•••••••••••••••••
X
••• · . C l · · . · · ·
•
•• SET LABfL •
• VALU~ ILABVLI •
• FCUAL Te •
• L.A.C. •
•••••••••••••••••
.·· .. 01··· .. ·
X• .PELeCATION PIT. StT LABEL •
• EUUAL TO •
• ~OCF OF •
• ASSE~PLY •
•••••••••••••••••
.*··.FJ ••... ·· ..• X
• • S[ARt~
•
•• OP COOt •
• TAPLF •
•
••••••••••••••••••
••••
x•
•• A3 •
• ••••
•Chart CE. The Assembler - Phase 9
• •••
x•
•• Al •
•
• ••• •
• •••
• •
• A.3 •
• •
••• •
.
x..
A3 •• • •••• A4 ••••••••••
• • • • • ERrlG •
•• UP coo~ •• NO .-.-.-.-.-.-.-.- •
•• IN TA8L~ •••••••••• X. UP CODE •
•• •• • ER.ROR •
* . . * • •
••
• YES•• • ••••••••••••••••
. ..
xB3 ••
•• t.
•• PHASE •• YfS
•• SEPVIC(NG OP ••••••
COOE
.. . ...
I~ • NO CORE...
•••••• C3 ••••••••••• X
•
REQUIRED LOADPHASE
• •••••••••••• • :X ... :
• ••• 03 •••••••• • X
• EXIT TO •
• REQUIRED •
•
•••••••••••••••
PHASE •. ..
x84 ••
.* *.
•• LIBR, A8S, •• YES .155, ENT, ERR, ••••••
•• np SPR ••
*. *. .* • NO .*
• •••• C4 •••••••••• X
•
•• INCP.fMFNT •
• L.A.C. •
• BY 2 •
•
•• ••••••••••••••••
: X •••••••••• :
•••••• 04 •••••••• • •• X LOLBl
..-.-.-.-.-.-.-
LOAD LABEL..
• READ NEXT • Rf'CORD
• ••••••••••••
••••
..
•• X. Al •.
• • ••••
SCAN
•••••
Chart CH.
•••••
• C I •• Ill.
•
• •
CLPFS ~ .
••••• 11\ ••••••••••
•
• RESET StAN•
•• FOR NEXT •
• TERM •
• •
•••••••••••••••••
... el··· .. ···
~• •
• ~ESTOPE SCIIN •
• FOP NFXT •
• ELE~FNT •
• ,. OPf~IITOPI •
•••••••••••••••••
~
•••• Cl.· ••• ••••
• EXIT Tn THE •
• (IILLING •
• ROuTINE •
•••••••••••••••
••••
• CI •
• [1 • • • •
• •
••••
•!o!DFFP X
... 01···
• •
• ~UlTIPLV- •
• LFflNED ER~OR •••••••••
• TO ERFLG. X
• •••••••••••••••••
• • ••••
.CH •••••
• CI •
• Fl ••••
• •
.... .
lJDl'f'l )(
··.··El ••••• •••·•
• •
• UNOEFINFC •
• J2·
• •
•• SV~BrL EPRCR •••••••••
• Til ERHG. X
•
•• ••••
••••••••••••••••• .CG •
Chart CI. The Assembler - Phase 9
• t4.
• • ..
elt ... EX
LABCK •••
AI ••
•• +.
YES.. FIRST ••
•••••• CHARACTER ••
•• NUfo'ERIC ••
•. .*
* •• *
• N(
••••
·
· El ....
X.• •
i. . •...
• LA BCl 61
...
••• * *.
•• •• YES
•• ChARACTER ••••••••••
••
....
HANK •• •• ••.
.CF •....
X• NC • HI.
:LABKl ••• x
C 1 ••
. .* *.
X NC •• ••
•••••• CHARACTER ••
•• IIALID ••
*. ••• * .*
• YES
...
x01 ••
... t .
• •
••• FIIiE •• NO
•• C~ARACTERS ••••••
•• ChECKED ••
*. .*
* •• *
• YES
:LABCK X
... El·.···
• CCLLECT FIIiE •
• CHARACTER •
• LABEL INTO •
• TWO kCReS •
•
••••••••••••••••• •
••••
· ..
• Fl •• X.• ••••
•X
•••• Fl ••••• ••••
• EXIT TO THE •
• CALLING •
• ROUTINE •
•••••••••••••••
lAB ER X
••••• Gl •• ••••••••
• •
• INCREMENT •
• LINK-wORD fOR.
• PSEUCC-SKIP •
•
•
•••••••••••••••••
X
•• ••• Hl •••••• ••••
•
• RETURN ALL • •• ZEROS IN •
• A, AND C. •
• ••••••••••••••••• •
••••
..
•• X. Fl •.
• • ••••
Chart CK. The Assembler - Phase 9
••••
x• •
• Bl •