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

What are encoder and the decoder, There are zillions of things in electroni...

There are zillions of things in electronics known as encoders. You can look up LCDs and NAND gates as well and this is actual basics.

Signal and system, You are required to implement below shift system in MATL...

You are required to implement below shift system in MATLAB, t0 is the amount of shift towards left or right. y(t)= x(t-t0) Implement MATLAB code, where shift should be taken as

Describe the operation of 8279, Q. Describe the operation of 8279. And als...

Q. Describe the operation of 8279. And also explain following terms: (i) N key Roll over. (ii) Key board debounce. (iii) FIFO RAM. Ans: 8279 is a programmabl

Transformers, Are you able to give a list of factors that could be consider...

Are you able to give a list of factors that could be considered as the transformer''s characteristics?

Dc chopper - power supplies , DC chopper This is  one stage  conversio...

DC chopper This is  one stage  conversion  device  which is used for direct conversion of fixed  de voltage at a level to an adjustable dc voltage  at another  level.

Dissemination of Learning - KPI, Dissemination of Learning - KPI Manag...

Dissemination of Learning - KPI Management has initiated a program, consequently invested a considerable amount of resources and learnt a lesson too. This learning now needs t

Explain emergency repairs to rail fracture, Q. Explain Emergency Repairs to...

Q. Explain Emergency Repairs to rail fracture? Emergency Repairs - The fractured rails shall be joined by using the arrangements clamps, fish plates. If the gap at fracture doe

Sketch a typical circuit for a 2-input 4-output decoder, Q. Sketch a typica...

Q. Sketch a typical circuit for a 2-input, 4-output decoder.

Explain atomic structure and energy band diagram of silicon, Explain Atomic...

Explain Atomic structure and Energy Band Diagram of Silicon. Silicon : It is other most commonly used semiconductor. Atomic number of it is 14. The no. of electrons in first,

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