13.07.2015 Views

CJ2 CPU Unit Software User's Manual - CIP ETI

CJ2 CPU Unit Software User's Manual - CIP ETI

CJ2 CPU Unit Software User's Manual - CIP ETI

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

Create successful ePaper yourself

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

AppendicesInstruction Mnemonic Code Symbol/Operand Function LocationDOUBLE BCDSUBTRACTWITHOUTCARRYBCD SUB-TRACT WITHCARRYDOUBLE BCDSUBTRACTWITH CARRYSIGNEDBINARY MULTI-PLY− BL@− BL− BC@− BC− BCL@− BCL*@*Executioncondition415Subtracts 8-digit (double-word) BCD data and/or constants.Output Required−BL(415)MiMi +1 Mi (BCD)Su− Su+1 Su (BCD)RMi: 1st minuendwordSu: 1stsubtrahend wordR: 1st result wordCY will turnON whenthere is aborrow.CYR+1416Subtracts 4-digit (single-word) BCD data and/orOutput Required−BC(416)constants with the Carry Flag (CY).MiMi (BCD)SuRSu (BCD)Mi: Minuend wordSu: SubtrahendwordR: Result wordCY will turnON whenthere is aborrow.−CYR417Subtracts 8-digit (double-word) BCD data and/or constantsOutput Required−BCL(417)with the Carry Flag (CY).MiMi +1 Mi (BCD)SuRSu+1Su (BCD)Mi: 1st minuendwordSu: 1stsubtrahend wordR: 1st result wordCY will turnON whenthere is aborrow.−CY420*(420)Multiplies 4-digit signed hexadecimal data and/or constants. Output RequiredMdMd (Signed binary)MrR×Mr (Signed binary)Md: MultiplicandwordMr: MultiplierwordR: Result wordR +1RCYR+1R(BCD)RCY(Signed binary)(BCD)(BCD)A-1 Instruction Functions AppA-1-9 Symbol Math InstructionsDOUBLESIGNEDBINARY MULTI-PLY*L@*L421*L(421)Multiplies 8-digit signed hexadecimal data and/or constants.Output RequiredMdMd + 1 Md (Signed binary)MrR×Mr + 1 Mr (Signed binary)Md: 1stmultiplicand wordMr: 1st multiplierwordR: 1st result wordR + 3 R + 2R + 1R(Signed binary)UNSIGNEDBINARYMULTIPLY*U@*U422 Output Required*U(422)Multiplies 4-digit unsigned hexadecimal dataand/or constants.MdMrMd (Unsigned binary)R×Mr (Unsigned binary)Md: MultiplicandwordMr: MultiplierwordR: Result wordR +1R(Unsigned binary)<strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>A-27

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

Saved successfully!

Ooh no, something went wrong!