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 6. SUPERVISORFLOWCHARTSMonitor Control Record Analyzer: SUP02 - SUP05Supervisor Control Record Analyzer: SUP06-SUP08Auxiliary Supervisor: SUP10<strong>System</strong> Core Dump <strong>Program</strong>: SUP09MONITOR CONTROL RECORD ANALYZER -PHASE 1The Monitor Control Record Analyzer is <strong>the</strong> programthat decodes monitor control records and takes <strong>the</strong>specified action.The Monitor Control Record Analyzer is enteredvia <strong>the</strong> EXIT entry point in <strong>the</strong> Skeleton Supervisor.This entry causes phase 1 of <strong>the</strong> Core Image Loaderto fetch <strong>the</strong> Monitor Control Record Analyzer andtransfer control to it.The Monitor Control Record Analyzer utilizes <strong>the</strong>system I/O device subroutines. Three of <strong>the</strong>se subroutines(an input, an output, and <strong>the</strong> appropriateconversion subroutine) are fetched into core storageby <strong>the</strong> Monitor Control Record Analyzer itself,using SLET information provided by <strong>the</strong> <strong>System</strong>Loader.The Monitor Control Record Analyzer readsmonitor control records from <strong>the</strong> principal inputdevice into <strong>the</strong> Supervisor buffer, which occupieslocations @SBFR through @SBFR+79 and contains amonitor control record in unpacked, right-justifiedEBCDIC format.The principal conversion subroutine checks formonitor control records. If <strong>the</strong> principal conversionsubroutine detects a monitor control record during<strong>the</strong> execution of a monitor system program o<strong>the</strong>rthan <strong>the</strong> Monitor Control Record Analyzer, $CTSWin COMMA is set to a positive non-zero value, <strong>the</strong>monitor control record is converted to unpacked,right-justified EBCDIC format, and <strong>the</strong> record ispassed to <strong>the</strong> Monitor Control Record Analyzer in<strong>the</strong> locations assigned as <strong>the</strong> Supervisor buffer.If a JOB record is recognized Phase 2 is fetchedand control passed to it.Upon detecting an ASM, FOR or RPG monitorcontrol record <strong>the</strong> Monitor Control Record Analyzerfetches <strong>the</strong> first phase of <strong>the</strong> specified program usingSLET information provided by <strong>the</strong> <strong>System</strong> Loader,and transfers control to it.Upon detecting a DUP monitor control record,<strong>the</strong> Monitor Control Record Analyzer tests $NDUP,<strong>the</strong> non-DUP switch, in COMMA. If $NDUP is zero,<strong>the</strong> Monitor Control Record Analyzer fetches andtransfers control to <strong>the</strong> first phase of DUP. O<strong>the</strong>rwise,an error message is printed and <strong>the</strong> nextcontrol record is read for processing.Upon detecting a PAUS monitor control record,<strong>the</strong> Monitor Control Record Analyzer comes to aWAIT at $PRET. When <strong>the</strong> PROGRAM START keyis pressed, <strong>the</strong> Monitor Control Record Analyzerreads and processes <strong>the</strong> next control record.Upon detecting a TYP monitor control record,<strong>the</strong> Monitor Control Record Analyzer replaces <strong>the</strong>SLET information used to fetch <strong>the</strong> principal inputdevice subroutine and its associated conversionsubroutine with <strong>the</strong> SLET information for <strong>the</strong> Keyboardinput subroutine and its associated conversionsubroutine. These subroutines are <strong>the</strong>n fetched andused for <strong>the</strong> reading and converting of subsequentinput records from <strong>the</strong> Keyboard.Upon detecting a TEND monitor control record,<strong>the</strong> Monitor Control Record Analyzer replaces <strong>the</strong>SLET information used to fetch <strong>the</strong> principal inputdevice (<strong>the</strong> Keyboard) subroutine and its associatedconversion subroutine with <strong>the</strong> SLET informationfor <strong>the</strong> device subroutine and conversion subroutineused with <strong>the</strong> device normally assigned as <strong>the</strong>principal input device, i. e. , not <strong>the</strong> Keyboard.These subroutines are <strong>the</strong>n fetched and used for <strong>the</strong>reading and converting of subsequent input records.Upon detecting a CPRNT monitor control record,<strong>the</strong> Monitor Control Record Analyzer replaces <strong>the</strong>SLET information used to fetch <strong>the</strong> principal printdevice subroutine with <strong>the</strong> SLET information for <strong>the</strong>Console Printer output subroutine. (This replacementis permanent and can be changed only by<strong>System</strong> Loader with a reload function.) This subroutineis <strong>the</strong>n fetched and used for <strong>the</strong> printingof subsequent output records on <strong>the</strong> ConsolePrinter.Upon detecting an EJECT monitor control record,<strong>the</strong> Monitor Control Record Analyzer ejects <strong>the</strong> pageon <strong>the</strong> principal print device, prints <strong>the</strong> currentpage heading, and reads and processes <strong>the</strong> nextmonitor control record.Upon detecting an XEG monitor control record,<strong>the</strong> Monitor Control Record Analyzer tests $NXEQ,<strong>the</strong> non-execute switch, in COMMA. If $NXEQ iszero, <strong>the</strong> Monitor Control Record Analyzer fetchesand transfers control to PHASE 4 (see below).O<strong>the</strong>rwise, <strong>the</strong> Monitor Control Record Analyzerprints an error message and reads <strong>the</strong> next controlSection 6. Supervisor 19

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

Saved successfully!

Ooh no, something went wrong!