Assembly program need help

Reply

Join Date: Dec 2008
Posts: 1
Reputation: zxz is an unknown quantity at this point 
Solved Threads: 0
zxz zxz is offline Offline
Newbie Poster

Assembly program need help

 
0
  #1
Dec 8th, 2008
Hello , im a very new to programming and i have a Question please.
i must write a program in Assembly the Question is :
"after giving a maximum of 30 positive numbers the program must output if the given number (Sequence) is a palindrome or not.( intering "0" or the thirty number - stop condition = output palindrome or not palindrome)."

please help with the Algorithm and the program code...

thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Assembly program need help

 
0
  #2
Dec 8th, 2008
Start with the basics.
Read some input, and print it right back out.

Then think about modifying it to detect a palindrome.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 3
Reputation: afas87 is an unknown quantity at this point 
Solved Threads: 0
afas87's Avatar
afas87 afas87 is offline Offline
Newbie Poster

Re: Assembly program need help

 
0
  #3
Jan 31st, 2009
hi,
assume that u store the sequence in array A,, i think u can do that by declare another array,let it be A,,
and then reverse the sequence of numbers and store them in this array
and cmpr the two arrays
if the two arrays are identical, then the result of cmpr is 1,the sequence is palindrome.
hope to be usefull
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC