Program description , Electrical Engineering

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.

Posted Date: 4/5/2013 1:22:36 AM | Location : United States







Related Discussions:- Program description , Assignment Help, Ask Question on Program description , Get Answer, Expert's Help, Program description Discussions

Write discussion on Program description
Your posts are moderated
Related Questions
Differentiate between synchronous and asynchronous types of serial communication.   Serial data communication uses two fundamental types as, synchronous and asynchronous. With

Use Thevenin's Theorem, find the current flow by resistor R=10Ω.

The IC engine based automobiles have been built and sold for more than 100 years. Predominantly the fuels used for running these IC engines have been petrol and diesel. In recent t

speed control of single phase ac motors

LAN topologies: Network topology is a physical schematic that demonstrates interconnection of the many users. There are four fundamental topologies as under: (i) Direct Connect

Power MOSFET MOSFET stands  for metal oxide semiconductor fields  effect transistor.  A power  MOSFET has  three  terminal  drain source  and  gate,. It  is unipolar device  me

1- phase  Full Bridge Inverter with R- Load 1-phase full  bridge inverter with resistive load R i it has  advantage over 1-? half  bridge  inverter that it does  not require

what is compensation of bjt

Explain factors that change the resistivity of conducting materials. Temperature- Electrical resistance of most metals rises with increase of temperature whereas those of sem

#quesFind a minimum two level, multiple-output AND-OR gate circuit to realize these functions (eight gates minimum). F1(a,b,c,d) =Sm(10,11,12,15) +D (4,8,14) F2(a,b,c,d) =Sm(4,11