Program description , Electrical Engineering

Assignment Help:

Program Description

In the above  program  any two  numbers can be stored in register A and B ( by  replacing XX  and YY).

Contents  of B are  compared with A. If  B CY = 0  (reset) and if Z < B  CY= 1 (set)

JNC SKIP  instruction  will check  CY flag  if CY  is not  it will jump to location 2009H otherwise  execution will come  to next location 2008H.

I e MOV A, B  instruction  will be executed  only when CY is set which is  the case when B  is greater  than A this instruction will copy  the contents of  B into A when B   is  greater.

OUT 01 instruction always  send the contents  of A to the specified  output  port. In the above  program   A will  always  hold the  greater number before  coming  to this  statement. Hence  greater number will be  displayed  at port  address 01H.


Related Discussions:- Program description

The electrical circuit sign convention, The Electrical Circuit sign convent...

The Electrical Circuit sign convention Notice that current leaves a source at its high potential (positive) terminal but enters a load at its high potential (positive) ter

Explain about ''emitter follower'', Q. Explain about 'Emitter Follower'? ...

Q. Explain about 'Emitter Follower'? EMITTER FOLLOWER : An emitter follower circuit shown in the figure is widely used in AC amplification circuits. The input and output of the

Rectifiers and inverters, Normal 0 false false false EN...

Normal 0 false false false EN-IN X-NONE X-NONE RECTIFIERS AND INVERTERS

Hi, Two projects using the principle of functional independence, increases ...

Two projects using the principle of functional independence, increases system accuracy?

Digital logic circuits, . In successive-approximation A/D converter, offset...

. In successive-approximation A/D converter, offset voltage equal to 1/2LSB is added to theD/A converter’s output. This is done to

Armature reaction, cross magnetizing components of armature reaction is.......

cross magnetizing components of armature reaction is...........

Define branch prediction logic in pentium, Define branch prediction logic i...

Define branch prediction logic in Pentium. Branch prediction logic in Pentium: The Pentium microprocessor utilizes branch prediction logic to decrease the time required for a

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