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

Add the contents of register - add instruction , Add the Contents of Regist...

Add the Contents of Register   This  instruction is used to add the contents  of register R with  the contents  of accumulator  and result  of operation is stored  in the accumu

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

How many 500-page books can be stored on a 2400-ft, Q. How many 500-page bo...

Q. How many 500-page books can be stored on a 2400-ft, 1600-BPI magnetic tape if a typewritten page contains about 2500 bytes?

Basic operations of 8085 microprocessor , Basic Operations of 8085 Micropro...

Basic Operations of 8085 Microprocessor The 8085 microprocessor  performs followings  five  basic  operations . 1. Opcode Fetch :  Reading and decoding  operation code  of

Power, why do we use commutator?

why do we use commutator?

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

What are the various tones used in stronger telephony, Q. What are the vari...

Q. What are the various tones used in stronger telephony? When called party line is obtained, exchange control equipment transmits out the ringing current to telephone set of t

Calculate reactive power to be delivered by the capacitor, A single-phase s...

A single-phase source delivers 100 kW to a load operating at 0.8 lagging power factor. In order to improve the system's efficiency, power factor improvement (correction) is achieve

State the advanatages of GPS system, Advanatages of GPS system These s...

Advanatages of GPS system These systems have been developed to mimic the knowledge and expertise of an expert in a particular field. For instance: -  prospecting for minera

Power semiconductor-controlled drives, Q. Explain Power semiconductor-contr...

Q. Explain Power semiconductor-controlled drives? Power electronics deals with the applications of solid-state electronics for the control and conversion of electric power. Con

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