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

Find the duty ratio and neglecting friction and windage, A 440-V, 60-Hz, si...

A 440-V, 60-Hz, six-pole, wye-connected, wound-rotor induction motor with a full-load speed of 1170 r/min has the following per-phase parameters referred to the stator:R 1 = R' 2

Enhancement operation of p-channel enhancement mosfet, Q. Show the Enhancem...

Q. Show the Enhancement operation of p-channel enhancement mosfet? As the gate terminal is insulated from the channel by the silicon dioxide layer, we can also apply a negative

Give example for non-maskable interrupts, Trap is called as Non-Maskable in...

Trap is called as Non-Maskable interrupts, which is used in emergency condition.

Gunawan, conclusion about electrical engireng??

conclusion about electrical engireng??

Find the new direct transfer gain, A voltage amplifier without feedback has...

A voltage amplifier without feedback has a nominal gain of 500. The gain, however, varies in the range of 475 to 525 due to parameter variations. In order to reduce the per-unit ch

Determine the full load voltage regulation, A 25KVA, 3 phase, wye-connected...

A 25KVA, 3 phase, wye-connected, 400v synchronous generator has a synchronous impedance of 0.05 +j1.6 ohms per phase. Determine the full load voltage regulation at (a) 0.8 power

engine-based combined heat and power, In this assignment, you will investi...

In this assignment, you will investigate the low-carbon technology that would be most suitable to provide heat and power for a domestic building. • Using information try to iden

Armature winding, what is use of dummy coil in DC m/c????

what is use of dummy coil in DC m/c????

Determine primary to secondary turns ratio of transformer, Consider a sourc...

Consider a source of voltage v(t) = 10 √2 sin 2t V, with an internal resistance of 1800 Ω. A transformer that can be considered ideal is used to couple a 50- resistive load to th

Overview of decimal number system, Q. Can you give some Overview of Decimal...

Q. Can you give some Overview of Decimal Number System? The Decimal Number System uses base 10 and It includes the digits from 0 through 9. The weighted values for each positio

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