10.07.2015 Views

A formal description of SYSTEM/360

A formal description of SYSTEM/360

A formal description of SYSTEM/360

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

in the case <strong>of</strong> ZAP (zero and add) and CVR (convert to binary), convertby using the single argunmlt k, directly. CVD also involves a single (lines j0-55argument only (j 1).The argument ki is determined (j19) as the signed base-10value <strong>of</strong> the vector al/u <strong>of</strong> decimal digits, u being assembled (j 15)by catenating the hasc-2 values <strong>of</strong> half-bytes from field i. Thelast half-byte determines the sign (jig), a negative sign beingrepresented by 13 (that is, 1101) in the extended RCD code(& = 0), and by 11 in the Anlerican Standard code. For example,if p12 = 0, I, = 1 and the bytes at Ma' and Ma1" are 0101 0000and 1001 1101, respectively, thcn u = 5,0, 9, 13, and k, = -509.The result X: is converted to thc decimal representation andstored (j34-42) and, except for DIJ (divide decimal), the operationsend on line j43. Because <strong>of</strong> the setting <strong>of</strong> j on line j33, thequotient k is stored only in the first (I, + 1) - (1, + 1) bytes <strong>of</strong>the first field, leaving space <strong>of</strong> length (I, + 1) for the remainder,which is computed on line j47 and converted and stored by repeatingfrom line j3.5.CVD produces an %byte result (j2), and CVD and CVB producespccification exceptions (j39, 3) if the argument address is notat an %byte boundary. E'or MP and DP, a specification exceptionis occasioned (j9) if the length <strong>of</strong> the second field exceeds either8 bytes or the length <strong>of</strong> the first (i.c., the result) field. All specificationexceptions suppress the instruction; except for CVD, inwhich the result field remains unchanged, all other errors makethe relevant result fields unreliable (348-55). A data exception f7occurs in ZAP (j8) if the fields overlap such that the right-handend <strong>of</strong> the second field is to the right <strong>of</strong> the right-hand end <strong>of</strong> thefirst. Data exceptions caused by improper overlapping in theother instructions are dctccted and entered on line j18.Two floating-point representations are used; the short (one- floating-pointword) and long (two-word) representations utilize logical vectors arithmeticu <strong>of</strong> dimensions 32 and 64, respectively. A number n, represented (lines k0-73)by u, is evaluated as follows:uo is the sign (0 for +, and 1 for -);I d/a"/u is the characteristic c;2"""* x 1 (Ys/u is the fraction f;c - 64 is the exponent e; and1 7 2 is equal to f X 16".The program comprises three ~najor segments, the fetching<strong>of</strong> operands u and v (lines kO-l6), the conlputation <strong>of</strong> the results(k17-65), and the storing <strong>of</strong> results and the setting <strong>of</strong> the conditioncode and <strong>of</strong> (lost) significance ( ilr) and exponent underflow( fI3) exceptions (1~66-73).Floating point register i is selected by the address 2xi,and the relevant addresses (both u1 and u2 in the RR format)are therefore subject to a specification exception check (kl)which suppresses the instruction. Specification exceptions occasionedby MAC also suppress the instruction (1~14).IFORMAL DESCRIPTION OF <strong>SYSTEM</strong>/36O 217

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

Saved successfully!

Ooh no, something went wrong!