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
Planned and coordinated development: The CEA would prepare the global Electricity Plan after carefully carrying out the demand forecast in consultation along with stakeholders

Binary Multiplication Multiplication can be seen as multiple additions. For  example  if we  have to multiple 4 and 8 we can  8, 4  time to get the  solution. Actually this  conc

what ''s part of dcmotor or dc generator

Q. A 60-Hz, 440-V, three-phase system feeds two balanced wye-connected loads in parallel. One load has a per-phase impedance of 8 + j3  and the other 4 - j1 . Compute the real po

Q For the circuit of Figure: (a) Find an expression for the power absorbed by the load as a function of R . (b) Plot the power dissipated by the load as a function of th

What is interrupt service routine? Interrupt means to break the sequence of operation. Whereas the CPU is executing a program an interrupt breaks the normal sequence of impleme

Illustrates about the power dissipation management in embedded system? Power Dissipation Management a. Clever real-time programming through Wait and Stop instructions b.

How does a diode work! what is its main formulas?

Q. A rectangular loop is placed in the field of an infinitely long straight conductor carrying a current of I amperes, as shown in Figure. Find an expression for the total

advantages of constant current bias