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

A keyboard shortcut for a command. For example, Ctrl + Alt + Delete are an accelerator key for the task manager in Windows 95.

Extrinsic Material In addition to thermally generated carriers, it is possible to create carriers in the semiconductor by purposely introducing impurities into the crystal

Unconditional Jump JMP ( Unconditional Jump ) Instruction: This  instruction is used to transfer  the execution to the  specified  memory  address unconditionally ( does not c

Q. Show the Storage Layout of digital system? The IEEE floating point numbers have three basic components: the sign, the exponent, and the mantissa. A mantissa is composed of t

draw a graph of V=IR for R=300ohms over the domain -3mA

Explain Hand shakingfor the allocation of addresses to memories and input output devices. Hand shaking: During an ASYNCHRONOUS data transfer is not based upon predetermined tim

Calculate the current flow in 30Ω resistor for the circuit in figure using Thevenin's Theorem.

Define Multiple Inputs - Control System When there is much more than one input to a system, the superposition principle can be employed. This is that: The response to variou

Determine the equivalent inductance: Two coils of inductances 4H and 6H are connected in parallel. If their mutual inductance is 3 H, determine the equivalent inductance of th