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

Khalid, hello, I do have some exams or test samples which are related to co...

hello, I do have some exams or test samples which are related to control and procces engineering. Can you have them solved with ilestrastion of all solving steps

What do you mean by instrument transformers, Q. What do you mean by Instrum...

Q. What do you mean by Instrument transformers? These are generally of two types, potential transformers (PTs) and current transformers (CTs). They are designed in such a way t

Laws of magnetic induction, The observations from these experiments led to ...

The observations from these experiments led to 'The Laws of Electromagnetic Induction' 1)  'If the magnetic flux threading through an electrical circuit changes, then an e.m.f.

Induced emf, applications of dynamically induced emf

applications of dynamically induced emf

Determine the fault current and the bus voltages, The one line diagram of a...

The one line diagram of a simple three-bus power system is shown in the figure below.  Each generator is represented by an emf behind the transient reactance.  All impedances are e

Digital electronics, an 8 bit successive approximation adc has a resolution...

an 8 bit successive approximation adc has a resolution of 20mv. what will be its ouput analogue input of 2.17v

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