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

Define not gate - microprocessor, Define NOT Gate - Microprocessor? The...

Define NOT Gate - Microprocessor? The NOT GATE which is as well called an Inverter, is used to invert the logic state of a signal. The output Q is true while the input A is NOT

Crossmagnetisation, what is crossmagnetisation in dc generator

what is crossmagnetisation in dc generator

Evaluate the available received power, (a) Some antennas have a physical ap...

(a) Some antennas have a physical aperture area A that can be identified and is related to the effective area A e by A e = ρ a A, where ρ a is known as the aperture efficiency.

Dc generator, Why armature core in a DC machine is constructed with laminat...

Why armature core in a DC machine is constructed with laminated steel instead of solid steel sheets

Electro magnetics and transmission lines, how does the kb come across the s...

how does the kb come across the sheet charge in the amperian sheet?

A Capacitor-Fed, A Capacitor-Fed, Voltage-Step-Down, Single-Phase, Non-Isol...

A Capacitor-Fed, Voltage-Step-Down, Single-Phase, Non-Isolated Rectifier

Explain operation modes of programmable interval timer 8254, Explain modes ...

Explain modes of operation of programmable interval timer 8254. Mode 0 - Interrupt upon terminal count Mode 1 - Programmable one-shot Mode 2 - Rate Generator Mode 3 -

Plug and socket condition -safe conduct, Plug and Socket Condition : In th...

Plug and Socket Condition : In the same way that your knowledge of flexes and fuses is wasted if you don't care to ensure that flexes and cables are routed safely and sensibly, so

Show the familiar electric sources, Q. Show the familiar electric sources? ...

Q. Show the familiar electric sources? Batteries and ac outlets are the familiar electric sources. These are voltage sources.An ideal voltage source is one whose terminal volta

Define time and shift invariant, Define Time and Shift Invariant? Time ...

Define Time and Shift Invariant? Time and shift invariant means that the system characteristics and shift do not change with time, i.e. the system output is independent of 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