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.

PACKB -- Converts from unpacked binary (twoframes per word) to packed binary, withchecksumming.PCHBI -- Punches a binary paper tape record.The phase has four entry points, one correspondingto each of <strong>the</strong> functions listed above.Each subroutine is entered by an indirect BSIinstruction to <strong>the</strong> symbolic name listed above.Upon entry to each subroutine, <strong>the</strong> registersand status conditions are saved using <strong>the</strong> ENTERsubroutine in DUPCO. Ano<strong>the</strong>r DUPCO subroutine,PHIDM, modifies <strong>the</strong> phase identificationwith <strong>the</strong> PFACE identification.Upon completion of <strong>the</strong> requested function andprior to exiting to <strong>the</strong> calling program, <strong>the</strong> originalconditions of <strong>the</strong> calling program are restoredusing <strong>the</strong> RTURN subroutine in DUPCO.GETHOThis subroutine is used by DCTL to read DUPcontrol records. The system device subroutinefor <strong>the</strong> 1134/1055 is used to read <strong>the</strong> record. An81-word buffer specified by CRBUF in CATCO isused to contain each record read. <strong>All</strong> conversionfrom PTTC/8 code to EBCDIC is performed by<strong>the</strong> system device subroutine. When <strong>the</strong> controlrecord has been read, it is converted to packedEBCDIC within <strong>the</strong> 41-word buffer specified byPEBUF in CATCO. The subroutine <strong>the</strong>n exitsto DCTL.GETBIThis subroutine reads a binary paper tape recordinto a 109-word buffer specified by THIS in CATCO.The system device subroutine for <strong>the</strong> 1134/1055 isused to read <strong>the</strong> record.Note that THIS and NEXT are reversed for eachrecord read when reading binary cards. Whenreading paper tape DCTL places <strong>the</strong> address of <strong>the</strong>buffer having <strong>the</strong> lowest core address into THIS,since <strong>the</strong> reading of binary paper tape recordsrequires an extended buffer. The system devicesubroutine reads each frame (eight bits of data)into one word of <strong>the</strong> buffer.The word count preceding each binary paper taperecord is punched into a single frame, and is readseparately from <strong>the</strong> body of <strong>the</strong> record. After <strong>the</strong>word count is read, it is checked for validity. If it isvalid, it is used to read <strong>the</strong> record that follows.If it is not valid, <strong>the</strong> next frame is read to determineif it is a word count. In this way, deletecharacters and o<strong>the</strong>r special codes may appearbetween binary records or between a control recordand <strong>the</strong> first binary record.PACKBThis subroutine packs <strong>the</strong> binary record as read byGETBI into normal binary data. The packed dataoverlays <strong>the</strong> unpacked data.After packing, <strong>the</strong> checksum of <strong>the</strong> words readis verified. If <strong>the</strong> checksum is correct, <strong>the</strong> subroutinereturns to <strong>the</strong> calling program. A checksumerror causes an exit to LEAVE in DUPCO withan error parameter.PCHBIThis subroutine uses <strong>the</strong> system device subroutinefor <strong>the</strong> 1134/1055 to punch a binary paper taperecord from a 109-word buffer specified by NEXT.Buffers Used By PFACETHIS -- 109-word buffer used by GETBI for readingbinary paper tape records.The two buffers THIS and NEXT, used fordouble buffering when reading binary cards,constitute one extended buffer when readingbinary paper tape records. Double bufferingis not used for binary paper tape records.NEXT -- 109-word buffer used by PCHBI for punchingbinary paper tape records, consisting ofTHIS and NEXT taken as consecutive buffers.CRBUF 81-word input buffer used to hold a controlrecord in unpacked EBCDIC.PEBUF 41-word buffer used to hold <strong>the</strong> packedEBCDIC control record, converted from <strong>the</strong>unpacked EBCDIC in CRBUF.Section 9. Disk Utility <strong>Program</strong> (DUP) 61

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

Saved successfully!

Ooh no, something went wrong!