Compare with memory, Electrical Engineering

Compare with memory

The contents  of the memory  of the memory  location  pointed by HL  register pair are compared with the  contents of the accumulator. The  instruction format is

CMP M        (A- [ HL])

The contents  of the both  the operand memory  location  and the  accumulator do not change. The flags  are modified  similar  to subtraction.

Flags : All flags  are modified  but he conclusion can be  made only by CY and  Z flag   as shown  below.

If A> M : CUY and Z flag are reset

IF a = M : Z flag  is set and CY flag is reset.

IF A < M : CY  is set and Z flag is reset.

Posted Date: 4/5/2013 12:51:57 AM | Location : United States







Related Discussions:- Compare with memory, Assignment Help, Ask Question on Compare with memory, Get Answer, Expert's Help, Compare with memory Discussions

Write discussion on Compare with memory
Your posts are moderated
Related Questions

Write short note on hardness of water and its units

Explain virtual memory. The term virtual memory considers as to something that appears to be present but in fact it is not. The virtual memory technique permits users to use m

Define Combinations of logic gates? The Logic gates be able to combined to produce more complex functions. They can as well be combined to substitute one kind of gate for anoth

bias compensation techniques for ac and dc characteristics

What do these 8086 instructions do? STD-Set  Direction Flag. when the instruction is implemented ,the direction flag of 8086 is set to 1. IRET-Interrupt Return. This instruc

Distinguish between ferromagnetic and paramagnetic materials, mentioning at least one example of each. Ferromagnetic Materials: These are materials wherein magnetic dipoles i

Regenerative Braking Control In this  methods  motor  behaves like a  generator  and the kinetic energy of the  motor  and connected load is  returned to the supply. If means

Q. Effect of feedback on sensitivity to parameter changes? A good control system, in general, should be rather insensitive to parameter variations, while it is still able to fo

Distinguish between paramagnetic and diamagnetic materials, mentioning at least one example of each. Paramagnetic Materials: The atoms of these materials have permanent magne