1 / 11

ECT 464

ECT 464. Lecture 10 Comparison. Today’s Quote: You cannot win if you do not begin. Now finish the work, so that your eager willingness to do it may be matched by your completion of it, according to your means. 2 Corinthians 8:11. Comparison Instructions. EQU – Equal NEQ – Not equal

delano
Download Presentation

ECT 464

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ECT 464 Lecture 10 Comparison

  2. Today’s Quote: You cannot win if you do not begin. Now finish the work, so that your eager willingness to do it may be matched by your completion of it, according to your means. 2 Corinthians 8:11

  3. Comparison Instructions • EQU – Equal • NEQ – Not equal • LES – Less than • LEQ – Less than or equal • GRT – Greater than • GEQ – Greater than or equal • MEQ – Masked comparison for equal • LIM – Limit test

  4. Equal (EQU) • Tests whether two values are equal • Source A must be an address • Source B can be an address or a constant

  5. Not Equal (NEQ) • Tests whether two values are not equal • Source A must be an address • Source B can be an address or a constant

  6. Less Than (LES) • Tests whether Source A is less than Source B • Source A must be an address • Source B can be an address or a constant

  7. Less Than or Equal (LEQ) • Tests whether Source A is less than or equal to Source B • Source A must be an address • Source B can be an address or a constant

  8. Greater Than (GRT) • Tests whether Source A is greater than Source B • Source A must be an address • Source B can be an address or a constant

  9. Greater Than or Equal (GEQ) • Tests whether Source A is greater than or equal to Source B • Source A must be an address • Source B can be an address or a constant

  10. Masked Comparison for Equal (MEQ) • Tests whether data at the Source is equal to data at the Compare • Source must be an address • Compare can be an address or constant • Mask is the address or a constant through which the data is compared. • Bits in the mask allow bits in the source and compare to be compared when set.

  11. Limit Test (LIM) • Tests whether data is within or outside a specified range • If Test is a constant, Low and High limits must be addresses • If Test is an address, Low and High limits can be addresses or constants. • If the Low limit is greater than the High limit, the instruction is false between the two limits.

More Related