C PROGRAMMING

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

Wednesday, 11 September 2013

CHECK WEATHER THE GIVEN NUMBER IS PALINDROME OR NOT.


;to check a number is palindrom or not
org 00h
mov r0,#11h
mov a,r0
swap a
cjne a,00h,l1
mov r1,#09h
l1:mov r2,#09h
end ;if r1 and r2 are 09h then the number is palindrom if only r2 is 09h then the number is not palindrom
Posted by abhiraj at 22:26
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.