11.07.2015 Views

Program Logic Manual - All about the IBM 1130 Computing System

Program Logic Manual - All about the IBM 1130 Computing System

Program Logic Manual - All about the IBM 1130 Computing System

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SECTION 10. ASSEMBLER PROGRAMFLOWCHARTSGeneral: ASMO1Phase 0: ASMO2Phase 1: ASMO3Phase 1A: ASMO4Phase 2: ASMO5Phase 2A: ASMO6Phase 3: ASMO7Phase 4: ASMO8Phase 5: ASMO9Phase 6: ASM10Phase 7: ASM11Phase 7A: ASM12Phase 8: ASM13Phase 8A: ASM14Phase 9: ASM15-ASM17Phase 10: ASM18Phase 10A: ASM19Phase 11: ASM20Phase 12: ASM21ERMSG: ASM22@ARCV ASM23@APCV:Phase 13:ASM24ASM25 -ASM26The Assembler <strong>Program</strong> is designed to translate <strong>the</strong>statements of a source program written in <strong>1130</strong>Assembler Language into a format that may bedumped and/or stored by DUP or executed directlyfrom Working Storage.Basically, <strong>the</strong> functions of <strong>the</strong> Assembler are:1. Convert <strong>the</strong> mnemonic to machine language(except for Assembler control records).2. Assign addresses to statement labels.3. Insert <strong>the</strong> format and index register bits into<strong>the</strong> instruction, if applicable.4. Convert <strong>the</strong> instruction operands to addressesor data.INTRODUCTIONThe Assembler <strong>Program</strong> is structurally divided intotwo parts, <strong>the</strong> resident portion and <strong>the</strong> overlay portion.The resident portion consists of <strong>the</strong> AssemblerCommunications Area (ASCOM), part of phase 0,phase 9, and <strong>the</strong> phase 9 Communications Area(PHSCO). <strong>All</strong> of <strong>the</strong> o<strong>the</strong>r phases are called intocore storage as overlays.The Assembler <strong>Program</strong> is functionally dividedinto two parts, pass 1 and pass 2. The source programis read and processed, one statement at atime, during each of <strong>the</strong> two passes. During pass 1,<strong>the</strong> source program is read into core storage from<strong>the</strong> principal I/0 device. Unless <strong>the</strong> user specifiesby control record that two-pass mode is in effect,<strong>the</strong> source program is stored on <strong>the</strong> disk, fromwhich it is reentered for pass 2 processing. If twopassmode is specified or required, <strong>the</strong> source programis reentered via <strong>the</strong> principal I/O device forpass 2 processing. (If a list deck or paper tapeobject program is desired, <strong>the</strong> assembly must bemade in two-pass mode.)PROGRAM OPERATIONWhen <strong>the</strong> Monitor Control Record Analyzer detectsan ASM monitor control record, it reads <strong>the</strong> firstsector of <strong>the</strong> Assembler <strong>Program</strong> (phase 0) intocore storage and transfers control to it.Phase 0 reads into core storage all <strong>the</strong> subroutinesrequired during assembly processing for I/O,and phase 9. The word counts and sector addressesof all <strong>the</strong> buffers and major overlay phases are initializedin ASCOM and in phase 9, and <strong>the</strong> boundaryconditions are set for <strong>the</strong> Symbol Table. Phase 1is <strong>the</strong>n fetched and control is passed to it.Phase 1 reads and analyzes control records, setting<strong>the</strong> appropriate switches in ASCOM for <strong>the</strong> optionsspecified. Upon detection of <strong>the</strong> first non-controlrecord, phase 1A is fetched and given control.Phase 1A initializes <strong>the</strong> core addresses for <strong>the</strong>buffers, <strong>the</strong>n fetches and transfers control to phase2 to start statement processing.Statement processing is performed by an op codesearch in phase 9 arid a transfer through a branchtable (that precedes every major overlay) to <strong>the</strong>overlay phase currently in core storage. If <strong>the</strong> requiredoverlay phase is in core storage, executionof <strong>the</strong> phase proceeds. If it is not in core storage,<strong>the</strong> branch table causes a return to phase 9 to fetch<strong>the</strong> required overlay phase. The op code search isperformed again and control is passed to <strong>the</strong> overlaySection 10. Assembler <strong>Program</strong> 65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!