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

Transfer function, derive transfer function of S= 2.25+j4.5

derive transfer function of S= 2.25+j4.5

Parabola by offset method, how many points are required to make an parabola...

how many points are required to make an parabola in offset method when vertical point has 4 points

Digital demodulator processes, Q. Digital demodulator processes? The fu...

Q. Digital demodulator processes? The functions of the receiver in Figure are the inverse of those in the transmitter. At the receiving end of a digital communication system, t

Sketch the frequency response, Q. For the circuits shown in Figure, sketch ...

Q. For the circuits shown in Figure, sketch the frequency response (magnitude and phase) of ¯V out / ¯V in .

Give the applications of carbon, Give the applications of carbon. Car...

Give the applications of carbon. Carbon : These materials used in the field of electrical engineering are manufactured from graphite and the other forms carbon as coal and so

Customer service management, Customer Service Management CRM involves ...

Customer Service Management CRM involves several activities related to planning - both long terms and short terms, measurement and control, improvement and innovation of all a

Draw and explain diode clipping circuit, Q. Draw and explain diode clipping...

Q. Draw and explain diode clipping circuit ? A diode clipping circuit can be used to limit the voltage swing of a signal. Clipper circuits are used to clip a portion of the w

logical and with accumulator instruction , ANA  Logical AND with Accumula...

ANA  Logical AND with Accumulator Instruction This  instruction is used to logically AND the accumulator  of any register or memory location  with the  accumulator and the r

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