13.07.2015 Views

IBM 5280 Distributed Data System - Index of

IBM 5280 Distributed Data System - Index of

IBM 5280 Distributed Data System - Index of

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.

Decimal Registei Shift Right and Round (SRR)Source:Object:o1FD Result decimal register address: The address <strong>of</strong> the decimal register that willcontain the shifted data upon completion <strong>of</strong> this operation. The high-orderbytes <strong>of</strong> the result register are filled with zeros (hex FO). <strong>Data</strong> that is shiftedout <strong>of</strong> the low end <strong>of</strong> the register is lost.To round the result, a 5 is used with the same sign as the sign that is in theshift register; the 5 is added to the last byte <strong>of</strong> data that is shifted out <strong>of</strong> theresult register.fJ Shift decimal register address: The address <strong>of</strong> the decimal register that containsthe data to shift. The contents <strong>of</strong> this register remain unchanged.II Shift count: The number <strong>of</strong> bytes to shift the data. The shift count can bespecified as a constant (hex O-F) followed by hex 0 or as a decimal registerthat contains the shift count in the digits portion <strong>of</strong> the low-order byte <strong>of</strong> theregister.The bytes <strong>of</strong> the shift register are shifted right the number <strong>of</strong> bytes indicated bythe shift count, and the shifted result is placed into the result register. The highorderbytes <strong>of</strong> the shifted result contain zeros (hex FOs) for the number <strong>of</strong> bytesshifted, and the units position <strong>of</strong> the shifted result retains the zone <strong>of</strong> the originalcontents <strong>of</strong> the shift register. The result is rounded by adding 5 <strong>of</strong> like sign to thelast byte shifted out <strong>of</strong> the right end <strong>of</strong> the result register.168

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

Saved successfully!

Ooh no, something went wrong!