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

Automatic irrigation system on running solar power b, how to upload the pro...

how to upload the program on proteus software by using personal computer

Data analysis in gis, Data analysis in GIS: Therefore, GIS consists of...

Data analysis in GIS: Therefore, GIS consists of the following: 1.  Database - for storage and retrieval of information. The database forms the foundation of the GIS syst

Addressing model , Addressing Model As we have learned  already  that ...

Addressing Model As we have learned  already  that each instruction has two  parts  one is  op code and another  is operand. Op code  specified  the type  of operations to be

Power mosfet - power semiconductor devices , Power MOSFET MOSFET stands...

Power MOSFET MOSFET stands  for metal oxide semiconductor fields  effect transistor.  A power  MOSFET has  three  terminal  drain source  and  gate,. It  is unipolar device  me

Explain n - type semiconductor, Explain n - Type semiconductor. n - ...

Explain n - Type semiconductor. n - Type semiconductor:- (i) If small amount of pentavalent impurity is added with, to a pure semiconductor giving a large number of free

Voice control mobile base, this is my final year project and i need help on...

this is my final year project and i need help on how to about it.

Write a control word for counter, Q. Write a control word for counter 1 of...

Q. Write a control word for counter 1 of 8253 / 8254 that selects following options:  load least significant byte only, mode 5 of operation and binary counting. Then write an inst

When both mt2 and gate are negative, When both MT 2 and Gate  are Negativ...

When both MT 2 and Gate  are Negative In this case N 3   works as a remote gate. Current  flows form layer P 2 to layer  N 3 junction N 1 P 1 is reverse biased  and it  br

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