12.07.2015 Views

1. xerox 560 computer system - The UK Mirror Service

1. xerox 560 computer system - The UK Mirror Service

1. xerox 560 computer system - The UK Mirror Service

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DSTDECIMAL STORE(Byte index alignment)Condition code settings:2 34 Result in DECAIf no illegal digit or sign is detected in the decimalaccumulator, DECIMAL STORE stores the low-order L bytesof the decimal accumulator into memory from the effectivebyte location to the effective byte location plus L-l.If the decimal accumulator contains more significant informationthan is actually stored (i. e., at least one nonzerodigit was not stored), CC2 is set to 1; otherwise, CC2is reset to O. If the result in memory is zero, the convertedsi gn remains unchanged.Affected: (EBL to EBL + L-l),CC1, CC2Trap: Decimal arithmetic(DECA) low-order bytes - EBL to EBL + L -1000 0 00 0 00 0DS- Illegal digit orIsi gn detectedOverflow0 ZeroNegative0 PositiveDECIMAL SUBTRACT(Byte index alignment)Instruction abortedNo illegal digit or signdetected, no overflow,instruction completedCondition code settings:2 3 4 Result of DSTo - - Illegal digit or sign detected, instructionaborted0 0 - All significant informationstored0 Some significantinformaTion norstoredDADECIMAL ADD(Byte index alignment)1JNo illegal digit orillegal sign detected,instruction completedIf no illegal digit or sign is detected in the effective decimaloperand or in the decimal accumulator, DECIMALSUBTRACT algebraically subtracts the decimal number fromthe contents of the decimal accumulator, and then loadsthe difference into the decimal accumulator. If the resultin the decimal accumulator is zero, the resulting sign isforced to the positive form.Overflow occurs if the difference exceeds the capacity ofthe decimal accumulator (i. e., if the absolute value of thedifference is equal to or greater than 10 31 ), in which caseCCl is reset to 0, CC2 is set to 1, and the instruction isaborted with the contents of the previous decimal accumulator,CC3 and CC4 unchanged.79Affected: (DECA), CCTrap: Decimal arithmetico 1 2(DECA) - EDO -DECAIf no illegal digit or sign is detected in the effective decimaloperand or in the decimal accumulator, DECIMAL ADDalgebraically adds the decimal number to the contents ofthe decimal accumulator. If the result in the decimalaccumulator is zero, the resulting sign is forced to thepositive form.Overflow occurs if the sum exceeds the capacity of thedecimal accumulator (i. e., if the absolute value of the sumis equal to or greater than 1031 ), in which case CCl isreset to 0, CC2 is set to 1, and the instruction aborted withthe previous contents of the decimal accumulator, CC3and CC4 unchanged.Affected: (DECA), CC(DECA) + EDO -DECATrap: Decimal arithmeticCondition code settings:o0002 3 4 Result in DECAo0 00 00- Illegal digit or )si gn detected- Overflow0 ZeroNegative0 PositiveInstruction abortedNo illegal digit or signdetected, no overflow,instruction completedDecimal Instructions 83

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

Saved successfully!

Ooh no, something went wrong!