Comparison instructions , Basic Computer Science

Assignment Help:
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.

Related Discussions:- Comparison instructions

Random access memory (ram), RANDOM ACCESS MEMORY (RAM): The RAM-type me...

RANDOM ACCESS MEMORY (RAM): The RAM-type memory will allow data to be written into it, as well as read from it. With very few exceptions, RAMS lose their contents when the powe

Explain the characteristics of vector processing, Question 1 Draw the bloc...

Question 1 Draw the block diagram of von Neumann Architecture and explain about its parts in brief Question 2 Draw the block diagram of Intel 8085 CPU organization and explai

File organization, File Organization There are three types of fi...

File Organization There are three types of file organization used in practice. Let us consider the example of a dictionary. The dictionary contains listing of English wo

Multiplexing, draw the diagram to implement 32*1 mux by using 3 relevant ty...

draw the diagram to implement 32*1 mux by using 3 relevant type of mux

Numerical data , i don''t understand how to create a program using double, ...

i don''t understand how to create a program using double, int, float, short etc

BARCODES, WHY ISN''T THE PRICE STORED ON THE BARCODE

WHY ISN''T THE PRICE STORED ON THE BARCODE

Features of python, • Easy-to-learn: Python has comparatively few keywords,...

• Easy-to-learn: Python has comparatively few keywords, easy structure, and a clearly distinct syntax. This permits the student to pick up the language in a comparatively short per

Artificial intelligence research, Artificial Intelligence research: Art...

Artificial Intelligence research: Artificial Intelligence research may be describe  in terms of how the following question has been answered: "How are we going to get a comp

The form is merely submitted if a user selects either red, Question (a)...

Question (a) What do we signifies by saying that HTTP is a stateless protocol? (b) Explain three ways of working around that statelessness issue (c) Explain with the help

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd