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 force-current analog as well as the force voltage, Q. (a) The c...

Q. (a) The concept of duality can be extended to nonelectric physical systems bymeans of analogs. For example, the mechanical system characteristics can be investigated by means

Determine the bits required for a d/a converter, Q. Determine the bits requ...

Q. Determine the bits required for a D/A converter to detect 1-V change when V ref = 15 V.

Electronics, what is the difference between half &full wave rectifier

what is the difference between half &full wave rectifier

What is program counter in 8085, Program counter holds the address of also ...

Program counter holds the address of also the first byte of the next instruction to be fetched for implementation or the address of the next byte of a multi byte instruction, which

Find the current, 1. A 1 μm long and 100 μm 2 cross-sectional area silicon...

1. A 1 μm long and 100 μm 2 cross-sectional area silicon bar is doped with 10 16 /cm 3 phosphorous. Use the graph below to: a. Find the current at 300°K with 10 V applie

State diagram for a typical von neumann machine, Question: a) Give the ...

Question: a) Give the instruction cycle state diagram for a typical Von Neumann machine. b) Give two diagrams to differentiate between a Memory and CPU connections. c) Co

Give the register organization of 8257, Give the register organization of 8...

Give the register organization of 8257? The 8257 do the DMA operation over four independent DMA channels. Each of the four channels of 8257 has a couple of two 16-bit registers

Matlap program, howw to plot amper circuital law through matlap

howw to plot amper circuital law through matlap

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