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

Determine the maximum length, Q. If the line of Problem 15.1.3 is made of c...

Q. If the line of Problem 15.1.3 is made of copper whose resistivity ρ = 1.72×10 -8 ·m, determine the maximum length that can be used if losses are not to exceed 3 dB when f = 3

Explain classification of amplifiers on biasing conditions, Q. Explain the ...

Q. Explain the classification of amplifiers on the biasing conditions? Based on the amount of transistor bias and amplitude of the input signal, amplifiers can be classified as

Signals and system, how can i calculate that is following signal is periodi...

how can i calculate that is following signal is periodic or not? X[n]= ?_(k=-8)^8¦?{d[n-4k]-d[n-1]-4k]}?

Sampling of digital communication systems, Q. Sampling of digital communica...

Q. Sampling of digital communication systems? Sampling of an analog signal makes it discrete in time. A bandlimited signal can be recovered exactly from its samples, taken peri

Depletion in mosfert, #Minimum 100 words accepted#explain depletion operati...

#Minimum 100 words accepted#explain depletion operations of MOSFET

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

Logic gates, what component will be use for making or logic gates.

what component will be use for making or logic gates.

Give the basic structure of a basic dma module, a) Give four features that ...

a) Give four features that were traditionally reserved to RISC architectures? b) Determine the overall throughput for 21 sequential instructions assuming a four-stage pipeline a

Issue in sub-transmission and distribution systems, Issue In Sub-Transmissi...

Issue In Sub-Transmission and Distribution Systems The major issue in Sub-transmission and Distribution systems or rather the issue confronting the power sector as an overall,

Application platform requirement - gis technology, Software/Application Pla...

Software/Application Platform Requirement: GIS solutions would primarily consist of Database and Applications software. The application package should work in LAN/WAN/Interne

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