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

TTL input logic circuit, I am building a testing device for the purpose of ...

I am building a testing device for the purpose of screening a 5801 BiMOS 8 BIT Parallel-input Latched Driver, I need help with input circuit to drive all 8 outputs one at a time. M

Illustrate nodal-voltage method, Q. Illustrate Nodal-Voltage Method ? A...

Q. Illustrate Nodal-Voltage Method ? A set of node-voltage variables that implicitly satisfy the KVL equations is selected in order to formulate circuit equations in this nodal

Return instructions , Return Instructions These instruction  are used ...

Return Instructions These instruction  are used to transfer the program sequence from subroutine to the  calling program. Basically  it restores the  previous  contents  of th

Second generation 1954- 1964- history of computer , Second Generation ( 195...

Second Generation ( 1954- 1964) After the invention of semiconductor devices mainly transistors size of computer s was reduced a lot computing power increased reliability was

Automotive wiring harness, what are the design consideration for electrical...

what are the design consideration for electrical wiring harness routing

Calculation of receiving end voltage, Calculation of Receiving End Voltage ...

Calculation of Receiving End Voltage Consider the simple circuit shown in Figure. To find the voltage V 2 using analytical method:   P = I V 2 = 0.5      ..... (1)

Spectrum analyser, The spectrum analyser plots amplitude against frequency,...

The spectrum analyser plots amplitude against frequency, in other words it shows signals in the frequency domain. The spectrum analyser has the same trigger options as the oscillos

#titleElectromagnetic Induction, Hello, I have some questions pertaining t...

Hello, I have some questions pertaining to electromagnetic induction. Could you please give me a hand? Thanks. If we increase the speed of the bar magnet slowly from 0 to 8, and

Single-axis autopilot control system of an aircraft, Q. Single-axis autopil...

Q. Single-axis autopilot control system of an aircraft? Figure (a) shows the block diagram of a simplified single-axis (pitch, yaw, or roll) autopilot control systemwith digita

Determine the response of a series r-c circuit, Determine the response of a...

Determine the response of a series R-C circuit to a SQUARE wave. Explain how the time constant affects the waveform observed across the components. Illustrate your answer by means

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