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.

ExamEle 2, L = 6:Example 1, L = 10:Before executionAfter executionBefore executionAfter executionEDO X'000938F7 X'000938F7E655B483E655B48302F1 BO'02F1BO'(DECA)X'ooOOOOOO00000001234567890123456D'X'OOOOOOOO00000001234567890123456D'(DECA) xxxxxxxx X'ooOOOooOxxxxxxxx 00000000xxxxxxxx 00000987xxxxxxxx6543210D'CC xxxx 0001EDOCCxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX'FOFOFOFlF2F3F4F5F6F7F8F9FOF1F2F3F4F5D6'OOxxUNPKUNPACK DECIMAL DIGITS(Byte index alignment, continue after interrupt)Example 2, L = 8:Before executionAfter executionIf no illegal digit or sign is detected in the decimal accumulator(assumed to be in packed decimal format), UNPACKDECIMAL DIGITS converts the contents of the low-orderL bytes of the decimal accumulator to zoned decimal formatand stores the result, as a byte string, from the effectivebyte location to the effective byte location plus 2L-2.<strong>The</strong> contents of the four low-order bit positions of the decimalaccumulator are used to select the sign code for thelast digit of the string; for all other digits, the zones are1111 (X'F'). <strong>The</strong> contents of the decimal accumulator remainunchanged, and only 2L-l bytes of memory are altered.If the decimal accumulator contains more significant informationthan is actually unpacked and stored, CC2 is set to 1;otherwise, CC2 is reset to O. If the result in memory iszero, the resulting sign remains unchanged.Affected: (EBltoEBL+2L-2),CC1, CC2zoned (DECA) - EBL to EBL + 2L -2Trap: Decimal arithmetic(DECA)EDOCCX'OOOOOOOO23000000100012340012345C'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxExample 3, L = 4:(DECA)EDOBefore executionX '0000 100 100001002000010030001004F'xxxxxxxxxxxxxxxxX '000000002300000010001234OO12345C'X'F1FOFOFOF1F2F3F4FOFOF1 F2F3F4C5'01xxAfter executionX'OOOOlool00001002000010030001004F'X'FOFOFOF1FOFOC4'Condition code settings:CCxxxxOlxx2 3 4 Result of UNPKoIllegal digit or sign detected, instructionabortedo 0 - - All significant informationzoned andstoredoSome signifi cantinformation notzoned and storedNo illegal digitor sign detected,instructioncompletedBYTE -STRING INSTRUCTIONSFive instructions provide for the manipulation of strings ofconsecutive bytes. <strong>The</strong> byte-string instructions and theirmnemonic codes ore as f()lI()ws~Instruction NameMnemonicMove Byte StringMBSCompare Byte StringCBS86 Byte-String Instructions

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

Saved successfully!

Ooh no, something went wrong!