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

Software, Write a computer program to implement the finite difference metho...

Write a computer program to implement the finite difference method. The program can be in any computer language that is available within the school. Set up the code to find the pot

Multiple tariff meters or tou meters, Multiple Tariff Meters or TOU Meters ...

Multiple Tariff Meters or TOU Meters Time of use metering facilitates load control and planning on the part of utilities. This is efficiently achieved using a concept known as

3rd year electrical/electronics project, I`m a 3rd year electrical engineer...

I`m a 3rd year electrical engineering student studying in Canada, and there is a new course they added in my university for 3rd year students called Engineering Project. from the

Integrated circuit with resistive feedback, principle of resistive feedback...

principle of resistive feedback circuit change when the square wave and triangular pulse frequencies, the amplitude of the triangle wave

Give applications of emitter follower, Q. Give applications of emitter foll...

Q. Give applications of emitter follower The emitter follower has the following principal applications: 1. To provide current amplification with no voltage gain 2. Impede

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

Define two popular parallel protocol used in embedded system, a. Compare th...

a. Compare the serial protocols, parallel protocols and wireless protocols in terms of formats, speed, performance and security issues. b. Briefly define two popular parallel pr

Show jkff connected as a t flip-flop, Q. For a JKFFwith JK = 11, the output...

Q. For a JKFFwith JK = 11, the output changes on every clock pulse. The change will be coincident with the clock pulse trailing edge and the flip-flop is said to toggle, when T = 1

Show the equivalent nor realizations of basic not, (a) Show the equivalent ...

(a) Show the equivalent NOR realizations of the basic NOT, OR, and AND gates. (b) Show the equivalent NAND realization of the basic NOT, AND, and OR gates.

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