s o u p a r n i k a . . . . . . .
Simple 8086 microprocessor programs
..............
Friday, January 8, 2010
GCD of two numbers:
XOR AX,AX
MOV AL,[1500h]
MOV BL,[1501h]
loc3:
CMP AL,BL
JNC loc1
XCHG AL,BL
MOV AH,00h
loc1:
DIV BL
XOR AH,00h
JZ loc2
MOV AL,AH
SUB AH,AH
JMP loc3
loc2:
MOV [1504h],BL
HLT
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Ramesh
View my complete profile
Blog Archive
▼
2010
(11)
▼
January
(11)
Generate prime numbers
Solve the Equation
Even and odd Seperation
GCD of two numbers:
FIBONACCI SERIES (x86 kit)
Occurance of numbers (x86 kit)
Program to prove sqrt(x)+sqrt(x)=sqrt(x+y)
Sorting in descending order(x86)
Even and odd sorting
Addition -x86 trainer kit-program
1's complement of a number
Search This Blog
Followers
No comments:
Post a Comment