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

.branch current method, if a resistor is present between 2 branches in such...

if a resistor is present between 2 branches in such way that its polarities are different to compare with one another so how we choose polarity of that resistor

Determine the current and the voltage in the load resistance, Q. Adiodewith...

Q. Adiodewith the i-v characteristic shown in Figure is used in series with a voltage source of 5 V (forward bias) and a load resistance of 1 k. (a) Determine the current and t

Application platform requirement - gis technology, Software/Application Pla...

Software/Application Platform Requirement: GIS solutions would primarily consist of Database and Applications software. The application package should work in LAN/WAN/Interne

Compute the maximum value of the voltage induced in the coil, Q. The coil i...

Q. The coil is placed so that its axis of revolution is perpendicular to a uniform field, as shown in Figure If the flux per pole is 0.02 Wb, and the coil, consisting of 2 turns, i

Explain the 16-bit registers dptr and sp of 8051, Explain the 16-bit regist...

Explain the 16-bit registers DPTR and SP of 8051. DPTR: DPTR stands for data pointer. DPTR having of a high byte (DPH) and a low byte (DPL). Its function is to hold a 16-b

Capacitive var, how over compensation by capacitive var rises voltage in a ...

how over compensation by capacitive var rises voltage in a circuit?

Dc generater, define all the symbols with their unit

define all the symbols with their unit

Explain sar instructions in 8086 family, Explain SAR instructions in 8086...

Explain SAR instructions in 8086 family with example and their effect on flag. SAR: Shift each bit of operand right through given number of bits, this instruction shifts eve

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