Comparison instructions , Basic Computer Science

They are used to evaluate operators, and they have an effect on the content of the flags.
CMP
CMPS (CMPSB) (CMPSW)
CMP INSTRUCTION
Idea: To measure up to the operators.
Syntax:
CMP destiny, source
This instruction subtracts the source operator from the destiny operator but with no this one storing the outcome of the operation, and it only concerns the state of the flags.

CMPS (CMPSB) (CMPSW) INSTRUCTION
Idea: To compare sequences of a byte or a word.
Syntax:
CMP destiny, source
With this instruction the series of source characters is subtracted from the destiny chain.
DI is used as an index for the additional segment of the source chain, and SI as an index of the destiny series.
It only affects the content of the flags and DI as well as SI is incremented.
Posted Date: 5/4/2012 7:18:33 AM | Location : United States







Related Discussions:- Comparison instructions , Assignment Help, Ask Question on Comparison instructions , Get Answer, Expert's Help, Comparison instructions Discussions

Write discussion on Comparison instructions
Your posts are moderated
Related Questions
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Application Software:   Application software is designed and developed to accomplish one or more specific task or solve a particular problem.    Application software may be

Question 1 What is IT auditing? Discuss the three phases involved in the IT auditing Question 2 List and explain the two types of load balancing methods Question 3

Question 1 Briefly explain the classification of the computers Question 2 What is arithmetic logic unit? How it is helpful in CPU? Question 3 How do you install a

what is the short and complete definition of computer

Processor: Processor plays major role in a computer. One should carefully decide about the type of processor and its speed before making a choice. Currently Core 2 Duo process

ENTERPRISE RESOURCE PLANNING What has football got to do with it? asks management guru Michael Hammer in his latest best seller Beyond Reengineering. The answer is almos

Conditional statement: An If statement is composed of three parts. The first part should be keyword w.r.t language to convey to the computer that it is if statement. And a Bo

how to introduce information system an in organization

What are two types of evidence geologists use to learn about Earth''s interior.?