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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

AppendicesA-1-13Floating-point Math InstructionsInstruction Mnemonic Code Symbol/Operand Function LocationMOVEFLOATING-POINT(SINGLE)MOVF 469 Transfers the specified 32-bit floating-point number to the specifiedMOVF(469)destination words.SDS+1SS: 1st source wordD: 1st destinationwordD+1 DOutputExecutionconditionRequiredFLOATINGTO 16-BITFIX@FIX450 Output RequiredConverts a 32-bit floating-point value to 16-bit signed binaryFIX(450)data and places the result in the specified result word.SFloating-point dataS+1 S(32 bits)RS: 1st source wordR: Result wordRSigned binary data(16 bits)FLOATINGTO 32-BITFIXL@FIXL451 Output RequiredFIXL(451)Converts a 32-bit floating-point value to 32-bit signed binarydata and places the result in the specified result words.SFloating-point dataS+1 S(32 bits)RS: 1st source wordR: 1st result wordR+1 RSigned binary data(32 bits)16-BIT TOFLOATING32-BIT TOFLOATINGFLT@FLTFLTL@FLTL452 Output RequiredFLT(452)Converts a 16-bit signed binary value to 32-bit floating-pointdata and places the result in the specified result words.SSigned binary dataS(16 bits)RS: Source wordR: 1st result word R+1 RFloating-point data(32 bits)453 Output RequiredFLTL(453) Converts a 32-bit signed binary value to 32-bit floating-pointdata and places the result in the specified result words.SSigned binary dataS+1S(32 bits)RS: 1st source wordR: 1st result word R+1 RFloating-point data(32 bits)FLOATING-POINTADDFLOATING-POINTSUBTRACT+F@+F−F@−F454 Output Required+F(454)Adds two 32-bit floating-point numbers and placesthe result in the specified result words.AuAugend (floating-pointAdAu+1Audata, 32 bits)RAddend (floating-point+Ad+1Addata, 32 bits)Au: 1st augendwordAD: 1st addendResult (floating-pointwordR+1 Rdata, 32 bits)R: 1st result word455Subtracts one 32-bit floating-point number from anotherOutput Required−F(455)and places the result in the specified result words.MiMinuendMi+1Mi(floating-point data,Su32 bits)RSubtrahend− Su+1Su(floating-pointdata, 32 bits)Mi: 1st MinuendwordSu: 1stResult (floating-pointSubtrahend wordR+1 Rdata, 32 bits)R: 1st result wordA-38 <strong>CJ2</strong> <strong>CPU</strong> <strong>Unit</strong> <strong>Software</strong> User’s <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!