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

How 8255 programmable peripheral interface can operate, What are the differ...

What are the different modes in which 8255 Programmable Peripheral Interface (PPI) can operate? Twenty Four I/O lines in 38-bit port groups - A, B and C A and B can be

Basic electromagnetic principles, It has been known for a thousand years or...

It has been known for a thousand years or more (originating in China) that certain (magnetic) materials would always orientate    themselves in a  particular direction if suspended

Explain the ascii character set - microprocessor, Explain the ASCII Charact...

Explain the ASCII Character Set? Most programming languages have a means of defining a character as a numeric code and, conversely, converting the code back to the character. ASC

Electrical/electronic engineering project, i need a project creating in ele...

i need a project creating in electronic/electrical engineering at HNC level, 3000 words Harvard referencing. it can be about anything in this field or i can give a suggestion

Signal and system, You are required to implement below shift system in MATL...

You are required to implement below shift system in MATLAB, t0 is the amount of shift towards left or right. y(t)= x(t-t0) Implement MATLAB code, where shift should be taken as

What are the five stages in a dlx pipeline, The five stages of DLX pipeline...

The five stages of DLX pipeline is:- ? Operand location ? Number of explicit operands per instruction ? Operand storage in the CPU ? Operations ? Type and size of o

find power flow solution for the system, For the 3 bus system shown below ...

For the 3 bus system shown below all values are given in pu on a 100MVA base (a) Use Matlab functions lfgauss and lfnewton to find power flow solution for the system, accurate

Closed loop block diagram into Electrical Circuit, I have a closed loop or ...

I have a closed loop or feedback system and i want to convert it into electrical circuit. please give me example about this

Dc machine, why armature lamination notched in outer periphery

why armature lamination notched in outer periphery

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