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.

AppendicesA-1-12Special Math InstructionsInstruction Mnemonic Code Symbol/Operand Function LocationBINARY ROOTBCD SQUAREROOTARITHM<strong>ETI</strong>CPROCESSFLOATINGPOINT DIVIDEROTB@ROTBROOT@ROOTAPR@APRFDIV@FDIVExecutioncondition620 Output RequiredROTB(620)Computes the square root of the 32-bit binary contentof the specified words and outputs the integer portionSof the result to the specified result word.RS: 1st source wordR: Result wordS+1 SBinary data (32 bits)RBinary data (16 bits)072 Output RequiredROOT(072)Computes the square root of an 8-digit BCD numberand outputs the integer portion of the result to theSspecified result word.RS+1 SRS: 1st source wordBCD data (8 digits)BCD data (4 digits)R: Result word069APR(069)CSRCalculates SIN, COS, or linear extrapolation.SIN or COS calculation: Calculates the SIN or COS fromangle data (0° to 90°) and outputs the result in BCD tofour places below the decimal.Linear extrapolation: Calculates and outputs a linearextrapolation in binary from the specified input data.C: Control wordS: Source dataR: Result wordOutputRequired079 Output RequiredFDIV(079)Divides one 7-digit floating-point number by another.The floating-point numbers are expressed in scientificDdnotation (7-digit mantissa and 1-digit exponent).DrQuotientRR+1 RDd: 1st dividendDr+1 DrDd+1 DdwordDr: 1st divisorwordR: 1st result wordA-1 Instruction Functions AppA-1-12 Special Math InstructionsBIT COUNTERBCNT@BCNT067 Output RequiredBCNT(067)Counts the total number of ON bits in the specifiedword(s).NSN wordsCounts the number ofRtoON bits.N: Number ofwordsS: 1st source wordR: Result wordS+(N −1)RBinaryresult<strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>A-37

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

Saved successfully!

Ooh no, something went wrong!