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

Managing change, Managing Change: 1 The prominent actors included in t...

Managing Change: 1 The prominent actors included in the change procedure in an organisation are Change Makers, Change Agents, Change Leaders and they play a strategic role in

Digital electronics, In a certain chemical-processing plant, a liquid chemi...

In a certain chemical-processing plant, a liquid chemical is used in a manufacturing process. The chemical is stored in three different tanks. A level sensor in each tank produces

Cro, oscilloscope probes specification & performance

oscilloscope probes specification & performance

Diode, using a sketch explain the frequency response of rc coupled transist...

using a sketch explain the frequency response of rc coupled transistor amplifier

Determine the percentage ripple voltage, Problem (a) Figure gives the ...

Problem (a) Figure gives the basic circuit of the diode limiter. Assuming that the diodes are ideal sketch and annotate the waveforms of the input voltage vi(t) and the load

Name the materials used in case of solder, Name the materials used in case ...

Name the materials used in case of Solder and give reasons. Solder : For soft solders tin, lead (in 50-50 ratio) alloy and for hard solders copper- zinc and silver alloy

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

Explain the different instruction formats, Explain the different instructio...

Explain the different instruction formats with examples The instruction set is grouped into the following formats One byte instruction MOV C,A Two byte instruction

Transformers, determine the efficience of a 16 KVA transformer for the full...

determine the efficience of a 16 KVA transformer for the full-load,unit power factor

Common emitter configuration, Common emitter configuration: even in co...

Common emitter configuration: even in common emitter configuration current relation is like is same like common bias configuration. For common emitter configuration output cha

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