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

Speech Timer, Speech timer where max time is 5 minutes Use the switche...

Speech timer where max time is 5 minutes Use the switches for: start switch reset switch use the lights to represent: the “green” light meaning the

Calculate the monthly electric bill, Calculate the monthly electric bill fo...

Calculate the monthly electric bill for TESTU.  Metering is as follows: B 00,000 kWHr C 00,000   kVARHr D 0,000        kW  peak demand Facilities Charge = $500

Show the enhancement of mosfet, Q. Show the Enhancement of MOSFET ? Her...

Q. Show the Enhancement of MOSFET ? Here also the slab of p type material called the substrate is provided. The substrate is connected to a source terminal. Many discrete devic

Objectives of electricity and gas hazards, Objectives After studying th...

Objectives After studying this unit, you should be able to: 1. Describe the consequences of passing electric current through human body, 2. State and recognise the colour

On a scale of one to ten, TRAPS: Give a perfect 10, and you'll seem too sim...

TRAPS: Give a perfect 10, and you'll seem too simple to please. Give anything less than a perfect 10, and he could press you as to where you're being significant, and that road lea

Explain the types of power plants, Draw layout of hydro-electric power plan...

Draw layout of hydro-electric power plant and illustrate it briefly. Explain the following: a. Types of power plants b. Selection of power Plants

Determine what is the minimum required sampling rate, 1. An analog informat...

1. An analog information signal, whose maximum frequency is 6000Hz, is to be transmitted using a PCM system. The quantization error must not exceed the 1 % of the peak-to- peak an

Salary, electrical designer salary above 6years experience, in singapore

electrical designer salary above 6years experience, in singapore

Find the corresponding energy, Q. Consider a pair of coupled coils as shown...

Q. Consider a pair of coupled coils as shown in Figure of the text, with currents, voltages, and polarity dots as indicated. Show that the mutual inductance is L 12 = L 21 = M by

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