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 Location2'S COMPLE-MENTNEG@NEGExecutioncondition160 Calculates the 2's complement of a wordOutput RequiredNEG(160) of hexadecimal data.S2's complement(Complement + 1)R(S)(R)S: Source wordR: Result wordDOUBLE 2'SCOMPLEMENTNEGL@NEGL161 Calculates the 2's complement of two wordsOutput RequiredNEGL(161)of hexadecimal data.S2's complementR(Complement + 1)(S+1, S) (R+1, R)S: 1st source wordR: 1st result word16-BIT TO 32-BIT SIGNEDBINARYSIGN@SIGN600 Output RequiredSIGN(600)Expands a 16-bit signed binary value to its32-bit equivalent.SMSBRSS: Source wordR: 1st result wordMSB = 1:FFFF HexMSB = 0:0000 HexD+1 DD = Contents of SDATADECODERMLPX@MLPX076Reads the numerical value in the specified digit (or byte)Output RequiredMLPX(076)in the source word, turns ON the corresponding bit in theSresult word (or 16-word range), and turns OFF all otherbits in the result word (or 16-word range).CR4-to-16 bit conversionCS: Source wordl=1 (Convert 2 digits.)C: Control wordR: 1st result wordn=2 (Start with second digit.)4-to-16 bit decoding(Bit m of R is turned ON.)RR+18-to-256 bit conversionCl=1 (Convert 2 bytes.)n=1 (Start with first byte.)8-to-256 bit decoding(Bit m of R to R+15 is turned ON.)R+1R+14R+15R+16R+17R+30R+31Two 16-word rangesare used when lspecifies 2 bytes.A-30 <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!