Compare with register, Electrical Engineering

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.

 

Posted Date: 4/5/2013 12:50:34 AM | Location : United States







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

Write discussion on Compare with register
Your posts are moderated
Related Questions
A 440-V, 60-Hz, six-pole, wye-connected, wound-rotor induction motor with a full-load speed of 1170 r/min has the following per-phase parameters referred to the stator:R 1 = R' 2

create a matrix of 5x6. with identical columns and rows ranging from 200 to 1000 in equal increments

Q. Show the Enhancement operation of p-channel enhancement mosfet? As the gate terminal is insulated from the channel by the silicon dioxide layer, we can also apply a negative

i need matlab codes for the minimum cell cost method to start the initial feasible solution and the stepping stone method to find the optimum value

Tri State Devices Tri  State  devices have three  states logic 1  logic  0 and high  impedance. A tri state device ( Buffer/ Inverter) has three  lines output  enable as shown

Using the BC548B BJT transistor amplifier biasing circuit of Lab 2 build an amplifier with the voltage gain of  |A V | = 30 v/v ± = 10%. Measure all necessary parameters of the amp

Program Analysis We have to find the greater of two given  number. We  can store the given  numbers  in two  different  registers ( suppose register A and B). Then we will com

Q. Define Number Systems? A number system, in general, is an ordered set of symbols (digits) with relationships defined for addition, subtraction, multiplication, and division.

Q. Explain Current-to-Current Amplifier ? The circuit given in Figure is to amplify a current fed to the input of the op amp. Applying KCL at Y, i 1 + i S = i o S

Explain LDA, STA and DAA instructions LDA copies the data byte into accumulator from the memory location particular by the 16-bit address. STA copies the data byte from the acc