Programming Problems
Home
PROGRAMS
DOWNLOAD
ABOUT
CONTACT
Sunday, 17 July 2016
Write a program in assembly language(8085) to find the largest number among three numbers stored in registers.
ORG 1000H
MVI A, 00H
MVI B, 08H
MVI C, 02H
MVI D, 09H
MOV A, B
CMP C
JNC LOOP
MOV A, C
JZ LOOP
LOOP:
CMP D
JC LP1
LP1:
MOV A,D
HLT
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Popular Posts
Write a Java program to create an Applet to generate table of 10
import java.applet.Applet; import java.awt.*; public class tableof10 extends Applet { int count,i; public void init(){ ...
Write a shell script in Linux/Unix to find out the value of nCr.
clear echo “ Enter values for n & r” read n read r t=0 i=1 a=1 b=1 c=1 d=0 while [ $i –le $n ] do a=`expr $a \* $i` i=`e...
No comments:
Post a Comment