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

Explain about for loop construct, Q. Explain about For Loop Construct? ...

Q. Explain about For Loop Construct? The loop build causes the for loop to be splitted into portions and portions shared amongst threads in team. The syntax of loop construct

Determine the required tapping on the transformer, An induction motor has a...

An induction motor has a starting current that is 6 times the full-load current and a per-unit full- load slip of 0.04. The machine is to be provided with an autotransformer starte

Explain idiv instructions in 8086 family, Explain IDIV instructions in 80...

Explain IDIV instructions in 8086 family with example and their effect on flag. IDIV: It used to divide a 16-bit signed number with an 8-bit signed no. or 32 bit signed numb

Astigmation control, Astigmation control: In most modern oscilloscopes the...

Astigmation control: In most modern oscilloscopes there is an additional focusing control marked Astigmation . This is used to correct an effect which exactly is analogous to

What is 16-bit isa, What is 16-bit ISA? Compare it with 8-bit ISA bus. ...

What is 16-bit ISA? Compare it with 8-bit ISA bus. The only difference among the 8 and 16-bit ISA bus is that other connector is attached behind the 8-bit connector. This 16-bi

Meters and measurements, The subject of electrical measurements is such a l...

The subject of electrical measurements is such a large one that entire books have been written on the topic. Only a few basic principles will be introduced here. Practical measurem

Speed control of dc motor using pid, The objective of the project is to pro...

The objective of the project is to protect damage of the DC motors. If the motor is not working it will be shown with red light, if working normally then green and if working at a

Comparison of analog-modulation systems, Comparison of Analog-Modulation Sy...

Comparison of Analog-Modulation Systems The comparison of analog modulation systems (conventional AM, DSB SC, SSB SC, VSB, FM, and PM) can be based on three practical criteria:

Cathode-ray tube, Q. Explain Cathode-ray tube? While the CRT display is...

Q. Explain Cathode-ray tube? While the CRT display is one of the oldest, it still remains one of the most popular display technologies. The raster-scanned display devices work

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