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

Draw and explain diode clipping circuit, Q. Draw and explain diode clipping...

Q. Draw and explain diode clipping circuit ? A diode clipping circuit can be used to limit the voltage swing of a signal. Clipper circuits are used to clip a portion of the w

Show color television receiver, A color television receiver is shown in Fig...

A color television receiver is shown in Figure in block diagram form, indicating only the basic functions. The early part forms a straightforward superheterodyne receiver, except f

Explain acceptance cone, Explain Acceptance cone? The fibre air - core ...

Explain Acceptance cone? The fibre air - core interface is display below: In this figure Omax is the maximum angle, inside that the rays undergo total internal reflecti

What is the purpose of segment registers in 8086, What is the purpose of se...

What is the purpose of segment registers in 8086? There are 4 segment registers present in 8086. They are 1. Code Segment (CS ) register 2. Data Segment (DS ) register

Working of analog to digital converter, a) Write down a short note on compe...

a) Write down a short note on compensators. b) Classify filter with relevant sketches. c) Illustrate the principle and working of Analog to Digital converter.

Electronic monitor and alarm system for an oil separator, This assignment i...

This assignment is to develop a User Requirements Specification for an electronic monitor and alarm system for an Oil Separator in Surface Water Drainage Systems. These separato

Electrical machine, Design a suitable double –layer lap winding for a 6-pol...

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

Control system, what is the difference between the continuous time system ...

what is the difference between the continuous time system and discrete time system and their advnatages?

Draw a labeled block diagram of the encoder, Question: (a) The convers...

Question: (a) The conversion of a time varying analog audio signal into digital form is carried out using an electronic circuit known as a (signal) encoder. Draw a labeled bl

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