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
Q. What do you mean by Nibble? The nibble is a collection of bits on a 4-bit boundary. It would not be a particularly interesting data structure except for two items BCD (binar

develop and explain series and parallel magnetic circuits?


why voltages are in multiple in 11

Q. What Are the Differences Between Enhancement And Depletion Mosfet? Depletion MOSFET:Here a slab of p_type material is formed from a silicon base and referred to as substrate

Low-pass electronic filter: The capacitors and inductors are the reactive elements of the filter. The number of elements ascertains the order of the filter. In this situation,

A feedback control system with the configuration of Figure has the following parameters: K p = 0.5 V/rad, K a = 100 V/V, K m = 2.7 × 10 -4 N·m/V, J = 1.5 × 10 -5 kg·m 2 , and

Q. Explain Steady-State Error of Linear Systems? If the steady-state response of the output does not agree exactly with the steady state of the input, the system is said to hav

Consider the circuit in Figure (a), which include a controlled source, and find the current in the 5-V source and the voltage across the 5- resistor by using (a) the loop-current

Define Shunt VAr Compensation? Shunt capacitors absorb leading VArs (i.e. they are used to supply lagging VArs) whereas reactors are used to absorbs lagging VArs. Capacitors an