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

Branch operations , Branch Operations Normally  the program  executes ...

Branch Operations Normally  the program  executes in  a sequence. The contents of the program counter register are incremented by  one during  the execution  of current  instr

Illustrate inductance with example, Q. Illustrate Inductance with example? ...

Q. Illustrate Inductance with example? An ideal inductor is also an energy-storage circuit element (with no loss associated with it) like a capacitor, but representing the magn

Obtain a thevenin equivalent circuit, Q. (a) Obtain a Thevenin equivalen...

Q. (a) Obtain a Thevenin equivalent circuit at terminals A-B in the circuit. (b) What impedance ¯ZL, when connected to A-B, produces maximum power in ¯ZL? (c) Find the val

Hilda output - externally initiated signals , HILDA ( Output) It is ...

HILDA ( Output) It is  called hold acknowledge signals it is active  high  i e it  goes high when  microprocessor receives HOLD signal.

Ei enable interrupts instruction , EI Enable Interrupts  Instruction ...

EI Enable Interrupts  Instruction The interrupt enable flip  flop  is set  and all the interrupts  of 8085  microprocessor are  enabled  which are  disabled  by DI  instructi

Main difference between a latch and a flip flop, Question: a) What is ...

Question: a) What is the main difference between a latch and a flip flop? b) Draw the logic diagram of an SR-latch using only NAND gates. c) A positive edge triggered

Explain noise, Explain Noise Noise is unwanted signals which degrade t...

Explain Noise Noise is unwanted signals which degrade the desired signal content and therefore the performance of the system. Noise might be produced either externally or inte

Project, really need help how to run the veener press line for wood-based p...

really need help how to run the veener press line for wood-based panels?

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