Compare with register, Electrical Engineering

Assignment Help:

Compare with Register

The contents  of the register  are compared with  the contents  of the accumulator  here  register  may be  any one  of the  A, B, C, D E, H, or L  registers. The instruction format is

CMPR                          (A-R)

Actually the comparison is done  by subtracting  the contents  of the register from the  contents  of the  accumulator. The contents of the  register  and  the accumulator do not  change the  flags  are modified similar  to subtraction.

Flags : All flags  are modified  as they  would  change  in subtract  operation. But the  contents of both the  operand do  not change.

Although  all flags  are modified  but the  conclusion can be made only by CY and Z flag as shown  below

If A> R : CY  and Z flags  are reset.

IF A= R: Z Flag is set and  CY flag is reset.

IF A < R : CY  is set  and Z  flag s reset.

 


Related Discussions:- Compare with register

Explain working of liquid-crystal display, Q. Explain Working of Liquid-cry...

Q. Explain Working of Liquid-crystal display? This display needs only microwatts of power (over a thousand times less than a LED) and is used in such devices as electronic wris

Explain the external data bus, Q. Explain the External Data Bus? Extern...

Q. Explain the External Data Bus? External Data Bus: A bus which connects a computer to peripheral devices. 8088 microprocessor has 16-bit registers, 16-bit internal data bus i

History - field-effect transistor, History - Field-Effect Transistor: ...

History - Field-Effect Transistor: The principle of field-effect transistors was very first patented by Julius Edgar Lilienfeld in the year 1925 and by Oskar Heil in the year

Bi directional buffer 74ls245 , Bi Directional Buffer 74LS245 This types...

Bi Directional Buffer 74LS245 This types  of bi directional  buffer is required for data  bus as it has  to function as bi directional bus. The logic  diagram  of such  buffer i

Minimum value of rl that can be used, Verify the minimum & maximum load cur...

Verify the minimum & maximum load current for which the zener diode will keep regulation. Find the minimum value of RL that can be used. The zener diode has V Z = 12V, I ZK =

Dc motor, what is the reason of low meagger result of dc motor

what is the reason of low meagger result of dc motor

How typical dma controller can be interfaced to 8086/8085, Show how a typic...

Show how a typical DMA controller can be interfaced to an 8086/8085 based maximum mode system. For 8088 in maximum mode: The RQ/GT1 and RQ/GT0 pins are utilized to issue DMA

State the functions of a fuse, State the functions of a fuse. Fuse is ...

State the functions of a fuse. Fuse is a protective device that made of a thin wire or strip. This strip or wire is placed with the circuit this has to protect, therefore the

Illustrate gray code, (a) In the so-called folded binary code of 4 bits, th...

(a) In the so-called folded binary code of 4 bits, the left most digit represents the sign of an analog signal's quantized samples (with 0 for negative and 1 for positive), and the

Differentiate thermoplastic & thermosetting plastic material, Classify plas...

Classify plastic materials into two categories describe their important properties and give two examples of each. Plastic materials can be categorized in thermoplastic and ther

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