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.

into a 31 word work area which has been initialized to/FO. The field is <strong>the</strong>n placed in <strong>the</strong> RPG record.The RPG field is set to zeroes or nines if <strong>the</strong>real number being converted is too small or too largerespectively to fit into <strong>the</strong> RPG field.INTERNAL SUBROUTINES:INSRT- Subroutine which places <strong>the</strong> converted fieldinto <strong>the</strong> RPG record. It uses <strong>the</strong> techniqueof placing one eight-bit character (or twofour-bit packed digits) into <strong>the</strong> RPG fieldat a time, alternating between <strong>the</strong> left andright halves of a word. If a numeric fieldis packed, two decimal digits are retrievedat a time; if unpacked, single digit retrievalis used. Alphabetic retrieval correspondsto that of numeric unpacked exceptthat characters are returned from units of1,2 or 3 words ra<strong>the</strong>r than a one characterper word work area. Once a numeric fieldhas been retrieved, <strong>the</strong> sign sign is added to<strong>the</strong> Field (F=positive; D=negative). SeeDFCNV field type examples section of <strong>IBM</strong><strong>1130</strong> Disk Monitor <strong>System</strong>, Version 2, <strong>Program</strong>mingand Operator's Guide, Form C26-Form C26-3717.FBTN2 - Subroutine which generates <strong>the</strong> first decimaldigit and <strong>the</strong> decimal exponent of areal number field (adapted from RBTDsubroutine, see <strong>IBM</strong> <strong>1130</strong> SubroutineLibrary, Form C26-5929).MPY - Subroutine which generates <strong>the</strong> decimaldigits of a real number field (adaptedfrom FBTD subroutine, see <strong>IBM</strong> <strong>1130</strong>Subroutine Library, Form C26-5929).EXTERNAL SUBROUTINES:FLD- Subroutine which loads a standard precisionfloating point number into <strong>the</strong> FAC(see <strong>IBM</strong> <strong>1130</strong> Subroutine Library, FormC26-5929).E LD— Subroutine which loads an extended precisionfloating point number into <strong>the</strong> FAC(see <strong>IBM</strong> <strong>1130</strong> Subroutine Library, FromC26-5929).NORM- Subroutine which normalizes <strong>the</strong> numberin <strong>the</strong> FAC (see <strong>IBM</strong> <strong>1130</strong> SubroutineLibrary, Form C26-5929).ERRORS DETECTED: The F10 error is detected in<strong>the</strong> R-conversion subroutine RCNVT.107.3 •

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

Saved successfully!

Ooh no, something went wrong!