s o u p a r n i k a . . . . . . .
Simple 8086 microprocessor programs
..............
Friday, January 8, 2010
Sorting in descending order(x86)
SORTING DESCENDING
MOV CX,[1500h]
DEC CX
loc3:
MOV DX,CX
MOV BX,1502h
loc2:
MOV AX,[BX]
CMP [BX+02h],AX
JB loc1
XCHG AX,[BX+02h]
MOV [BX],AX
loc1:
INC BX
INC BX
DEC DX
JNZ loc2
DEC CX
JNZ loc3
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