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

Incorrect Solution, Hi there i just asked for question and answer for 5 cha...

Hi there i just asked for question and answer for 5 chapter and i just receive some of them in word the rest are in apiece of paper which is unprofessional could you please have l

Simplified operation on transistor, Simplified operation: Figu...

Simplified operation: Figure: Simple circuit to show the labels of a bipolar transistor. The essential value of a transistor comes from its capability to make use

State the advantages of expert systems, State the Advantages of expert syst...

State the Advantages of expert systems -  Never "forgets" to ask a question in determining the logic -  provides consistent answers - Less skilled work force needed, ther

Working of bootstrap sweep circuit, analysis and detail working of bootstra...

analysis and detail working of bootstrap sweep circuit

Network reconductoring - technical loss reduction, Network Reconductoring -...

Network Reconductoring - Technical Loss Reduction The size of conductor/cable is a significant parameter as it determines the current density and the resistance of the line. A

How many types of buses are, There are three types of buses. Address bu...

There are three types of buses. Address bus: This is used to carry the Address to the memory to get either Instruction or Data. Data bus : This is used to take the Data from

CAO, conditional branch instruction

conditional branch instruction

Expression for the force exerted on the iron plunger, Solenoids find applic...

Solenoids find application in a variety of electrically controlled valves. The magnetic structure shown in Figure is a simplified representation of a solenoid in which the flux in

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