C PROGRAMMING

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

Friday, 27 September 2013

DECIMAL TO OCTAL NUMBER.

org 00h
mov r0,#98d
mov 0f0h,#8d
mov a,r0
div ab
mov r6,a
mov r7,b
mov b,#8d
div ab
mov r5,a ;msb
mov a,b
swap a
add a,r7;a contains lsb bits
end

Posted by abhiraj at 03:00
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.