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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SECTION 7. CORE IMAGE LOADERFLOWCHARTSPhase 1: CIL01Phase 2: CIL02PHASE 1Phase 1 of <strong>the</strong> Core Image Loader handles <strong>the</strong> threeentries to <strong>the</strong> Skeleton Supervisor - LINK, DUMP,and EXIT, The Core Image Loader is assigned thistask in order to minimize transfer time (via CALLLINK) from one link to ano<strong>the</strong>r.Phase 1 of <strong>the</strong> Core Image Loader is naturallyrelocatable. It is read into core storage by <strong>the</strong>Skeleton Supervisor immediately following whicheverdisk I/O subroutine is currently in <strong>the</strong> ResidentMonitor. (This can be done by <strong>the</strong> Skeleton Supervisorwith minimal core requirement because <strong>the</strong>word count and sector address of this phase permanentlyreside at <strong>the</strong> end of each disk I/0 subroutine.)If <strong>the</strong> Skeleton Supervisor was entered at$DU1V1P ($RMSW is positive), phase 1 tests$DUMPF, <strong>the</strong> dump format code indicator. If$DMPF is negative, phase 1 fetches and transferscontrol to <strong>the</strong> Auxiliary Supervisor. If $DMPF isnot negative, phase 1 fetches and transfers controlto <strong>the</strong> <strong>System</strong> Core Dump program.If <strong>the</strong> Skeleton Supervisor was entered at $ EXIT($RMSW is negative), phase 1 tests $DZIN to determinewhe<strong>the</strong>r DISKZ is in <strong>the</strong> Resident Monitor. IfDISKZ is in <strong>the</strong> Resident Monitor, phase 1 fetchesand transfers control to <strong>the</strong> Monitor Control RecordAnalyzer. If DISKZ is not in <strong>the</strong> Resident Monitor,phase 1 fetches phase 2 of <strong>the</strong> Core Image Loader.Using phase 2 as a subroutine, phase 1 overlaysDISK1 or DISKN with DISKZ.. Phase 1 <strong>the</strong>n fetchesand transfers control to <strong>the</strong> Monitor Control RecordAnalyzer.If <strong>the</strong> Skeleton Supervisor was entered at $LINK($RMSW is zero), phase 1 tests $COMN in COMMAto determine if COMMON was defined by <strong>the</strong> coreload just terminated. If $COMN is non-zero, phase1 saves Low COMMON on <strong>the</strong> CIB. (Low COMMONis <strong>the</strong> lowest 320 words that could have been definedas COMMON by <strong>the</strong> core load just terminated.)Depending on <strong>the</strong> disk I/O subroutine currently in<strong>the</strong> Resident Monitor, Low COMMON is defined asfollows:Low COMMONDisk I/0 Subroutine Decimal HexadecimalDISKZ 896 - 1215 /0380 - /04BFDISK1 1216 - 1535 /04C0 - /05FFDISKN 1536 - 1855 /0600 - /073FThe area occupied by Low COMMON is used byphase 1 as a disk I/O buffer during <strong>the</strong> LET/FLETsearch and/or as <strong>the</strong> area into which phase 2 isfetched when phase 2 is to be used to fetch DISKZ.Once Low COMMON has been saved, or if noCOMMON was defined by <strong>the</strong> core load just terminated,phase 1 searches LET/FLET for <strong>the</strong> nameof <strong>the</strong> program or core load to be executed next.The name of tile link has been saved in $LKNM by <strong>the</strong>Skeleton Supervisor.If <strong>the</strong> link is in disk system format (DSF), phase1 saves any COMMON defined below 4096 on <strong>the</strong>CIB. It <strong>the</strong>n fetches phase 2, uses phase 2 as asubroutine to overlay DISK1 or DISKN with DISKZ,fetches phase 0/1 of <strong>the</strong> Core Load Builder, andtransfers control to phase 1 of <strong>the</strong> Core LoadBuilder.If <strong>the</strong> link is in disk core image format (DCI),phase 1 fetches and transfers control to phase 2 tofetch <strong>the</strong> link and <strong>the</strong> required disk I/O subroutine,if necessary, and to transfer control to that link.Special Techniques. Phase 1 of <strong>the</strong> Core ImageLoader places a disk call subroutine in COMMA at$HASH+8 through $HASH+19. Using this disk callsubroutine, phase 1 is able to overlay itself whenfetching phase 2, <strong>the</strong> Monitor Control RecordAnalyzer, etc.PHASE 2Phase 2 of <strong>the</strong> Core Image Loader is naturallyrelocatable. It is read into core storage (by phase1) immediately following <strong>the</strong> end of phase 1 if it isto be used by phase 1 to fetch DISKZ, or (by ei<strong>the</strong>rphase 1 or <strong>the</strong> Core Load Builder) following <strong>the</strong> endof <strong>the</strong> disk I/O subroutine currently in <strong>the</strong> ResidentMonitor if it is to fetch and transfer control to acore load. Phase 2 provides two functions: (1)to overlay <strong>the</strong> disk I/O subroutine currently in <strong>the</strong>Resident Monitor with <strong>the</strong> requested disk I/O sub-Section 7. Core Image Loader 27

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

Saved successfully!

Ooh no, something went wrong!