11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Tee Transfer Conditionally TeeOperation:Assembler Syntax:If cc, then S1 ~ 01 Tcc S1,01If cc, then S1 ~ 01 and S2 ~ 02 Tcc S1 ,01 S2,02Description: Transfer data from the specified source register S1 to the specified destinationaccumulator 01 if the specified condition is true. If a second source register S2and a second destination register 02 are also specified, transfer data from address registerS2 to address register 02 if the specified condition is true. If the specified conditionis false, a NOP is executed. The term "cc" may specify the following conditions:"CC (HS)CS (LO)ECEQESGEGTLCLELSLTMINENRPLNN"cc" Mnemonic- carry clear (higher or same)- carry set (lower)- extension clear- equal- extension set- greater than or equal- greater than-limit clear- less than or equal-limit set-less than- minus- not equal- normalized-plus- not normalizedConditionC=OC=1E=OZ=1E=1N E9 V=OZ+(N E9 V)=OL=OZ+(N EB V)=1L=1N E9 V=1N=1Z=OZ+(O'-E)=1N=OZ+(O-E)=0-whereo denotes the logical complement <strong>of</strong> U,+ denotes the logical OR operator,- denotes the logical ANO operator, andEB denotes the logical Exclusive OR operatorWhen used after the CMP or CMPM instructions, the Tcc instruction can perform manyuseful functions such as a "maximum value," "minimum value," "maximum absolutevalue," or "minimum absolute value" function. The desired value is stored in the destina-

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

Saved successfully!

Ooh no, something went wrong!