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

Rim read interrupt mask instruction, RIM Read Interrupt Mask Instruction ...

RIM Read Interrupt Mask Instruction This  instruction is used  to read the  status  of interrupts  and  read the serial  input  data. The status  byte is loaded  into  the accu

What is the probability that a call will be blocked, A three stage switchin...

A three stage switching structure is to accommodate N = 128 input and 128 output terminals. For 16 first stage and 16 last stage, verify the number of cross points for nonblocking.

Digital logical disign, design SR latch with universal logic gates.draw and...

design SR latch with universal logic gates.draw and explain the logic diagrams

Circuit with inductive load, Circuit with inductive load  Electromagnet...

Circuit with inductive load  Electromagnetic induction When a conductor is moved across a magnetic field so as to cut by the lines of force (or flux, an electromotive force

Compute the real power inductive load, Q. A 60-Hz, 440-V, three-phase syste...

Q. A 60-Hz, 440-V, three-phase system feeds two balanced wye-connected loads in parallel. One load has a per-phase impedance of 8 + j3  and the other 4 - j1 . Compute the real po

Write notes on clamping, Q. Write notes on clamping ? When a signal dr...

Q. Write notes on clamping ? When a signal drives an open-ended capacitor the average voltage level on the output terminal of the capacitor is determined by the initial charge

Show the applications of a r-c coupled amplifier, Q. What are the applicati...

Q. What are the applications of a R-C coupled amplifier. The R-C coupled amplifiers have excellent audio fidelity over a wide range of frequency. Therefore, they are widely use

Characteristics of an n-channel enhancement mosfet, Q. Find idealized expre...

Q. Find idealized expressions for the active and ohmic states and sketch the universal characteristics of an n-channel enhancement MOSFET operated below breakdown.

Statics, a mass of 20 kg is lifted u p to the roof of a cliff 100 m high.de...

a mass of 20 kg is lifted u p to the roof of a cliff 100 m high.determie Ep of the mass while it is at the top

Sketch the depletion mosfet drain characteristics, Q. Sketch the depletion ...

Q. Sketch the depletion MOSFET drain characteristics The depletion-type MOSFET has a structure similar to that of the enhancement-type MOSFET with one important difference: The

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