C PROGRAMMING

About c programs which i am learning in a subject called dsanda means data structures and algorithms.

Wednesday, 11 September 2013

WRITE ASM PROGRAM TO SORT N NUMBERS.


org 00h
mov 20h,05h
mov 21h,04h
mov 22h,01h
mov 23h,07h
mov r1,#04h
mov r2,#20h
l3:mov r0,r2
inc r0
l2:mov r3,r1
mov a,@r2
inc r2
subb a,@r0
jc l1
xch a,@r0
mov @r0,a
l1:djnz r3,l2
djnz r1,l3
end
Posted by abhiraj at 22:29
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Total Pageviews

Blog Archive

  • ▼  2013 (38)
    • ►  October (2)
    • ▼  September (19)
      • DECIMAL TO OCTAL NUMBER.
      • SORTING IN DESCENDING ORDER.
      • DECIMAL TO HEXADECIMAL NUMBER.
      • HEXADECIMAL TO DECIMAL PROGRAM
      • Assume that characters are available and stored at...
      • QUICK SORT
      • SELECTION SORT
      • simple insertion sort
      • WRITE ASM PROGRAM TO SORT N NUMBERS.
      • DESIGN A SIMPLE CALCULATOR.
      • CHECK WEATHER THE GIVEN 8 BIT NUMBER IS PRIME OR NOT.
      • CHECK WEATHER THE GIVEN NUMBER IS PALINDROME OR NOT.
      • C Program to Implement Queue Data Structure using ...
      • C Program to Implement a Queue using an Array
      • Source code of simple bubble sort implementation u...
      • Source code of simple merge sort implementation us...
      • c program to find largest number in array
      • stack using array in c code
      • stack implementation by linked list in c
    • ►  August (17)

About Me

abhiraj
I am an intern in intel.
View my complete profile
Picture Window theme. Powered by Blogger.