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

Fulfilled to sustain the oscillations, Q. What are the conditions required ...

Q. What are the conditions required to be fulfilled to sustain the oscillations? The conditions required to be fulfilled to sustain the oscillations are: 1. The loop gain mu

Rar rotate accumulator right through carry instruction , RAR  Rotate Accum...

RAR  Rotate Accumulator Right Through Carry Instruction This instruction rotates the contents  of the  accumulator  towards right by  one bit. The D 7   bit moves to D 6 posi

Charge and electric force, Charge and Electric Force The proton has a c...

Charge and Electric Force The proton has a charge of +1.602 10 -19 coulombs (C), while the electron has a charge of -1.602 × 10 -19 C. The neutron has zero charge. Electric c

Find the percent voltage regulation of the transformer, Q. A 25-kVA, 2400/2...

Q. A 25-kVA, 2400/240-V, 60-Hz, single-phase transformer has an equivalent series impedance of 3.45 + j5.75  referred to the primary high voltage side. The core loss is 120 W. Whe

Explain medium length lines, Explain Medium length lines? Medium length...

Explain Medium length lines? Medium length lines cover lines in the range of 50 to 150 miles (80 to 240 km). Due to the increased length of the line, the shunt capacitance of t

Mips simulator, The coursework requires you to work in pairs to write a Jav...

The coursework requires you to work in pairs to write a Java application that will take a numerical representation of a MIPS program and simulate its execution. MIPS is a Load-S

What is dtmf dialling, Q. What is DTMF dialling? DTMF dialling 1. ...

Q. What is DTMF dialling? DTMF dialling 1.  Uses push buttons 2.  Uses 8 different frequencies in pairs. 3.  16 different characters can be represented. 4.  The f

C programming., #queComputers are frequently used in check-writing systems,...

#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by

Clapp oscillator, derivation of frequency of oscillators clapp and derive C...

derivation of frequency of oscillators clapp and derive C effect?

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