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 exponential form of the fourier series, Q. Find the exponential fo...

Q. Find the exponential form of the Fourier series of the periodic signal given in Figure. Also determine the resulting series if T = 2τ .

Calculus, area bounded by the curve y=3x(x-2)^2 and the x-axis

area bounded by the curve y=3x(x-2)^2 and the x-axis

Fixed and adaptive - optimal filtering, Optimal Filtering A syste...

Optimal Filtering A system identi?cation structure is shown in Figure 1. The discrete-time signal [ ] forms the input to an unknown system represented by a moving average

Dc machines, explain dynamically induced emf and derive expression for it

explain dynamically induced emf and derive expression for it

Phisics, deriving formula of the frictional force

deriving formula of the frictional force

Complier -high level language , Complier-High Level language It al...

Complier-High Level language It also  translates the  whole  high  level  program  into object  program if it does not  have any  syntax error. The disadvantage of the  in

Clippers, Which clipper would you prefer between the series and the shunt c...

Which clipper would you prefer between the series and the shunt clipper? Why?

Solar energy, project for solar panel for farms in Saudi Arabia

project for solar panel for farms in Saudi Arabia

Superposition theorem, how do you work it out if there are 3 sources in par...

how do you work it out if there are 3 sources in parallel?

Rst restart instructions , RST Restart Instructions Restart instructio...

RST Restart Instructions Restart instructions  are one byte call instructions. Called location for each restart instruction is  predefined on page 0 ( read only memory). They

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