6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed May 22, 2024 4:50 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Programming
PostPosted: Sun Jun 29, 2003 10:59 pm 
Offline

Joined: Wed Jun 25, 2003 12:17 am
Posts: 2
I need a little help writting a program which will look at a list of numbers which are stored in memory. The end of this list will be indicated by the number 00. The number 00 cant be used anywhere in the list except to mark the end. The program will add each pair of numbers. When the program adds the numbers it will place them in a memory location called LRGST. each pair added will be compred to the last pair and the largest sum place in memory location LRGST, so when the program is finished it will have the largest sum in :? :? :? ????


Top
 Profile  
Reply with quote  
 Post subject: Re: Programming
PostPosted: Mon Jun 30, 2003 2:36 am 
Offline
Site Admin
User avatar

Joined: Fri Aug 30, 2002 1:08 am
Posts: 280
Location: Northern California
Tim wrote:
I need a little help writting a program which will look at a list of numbers which are stored in memory. The end of this list will be indicated by the number 00. The number 00 cant be used anywhere in the list except to mark the end. The program will add each pair of numbers. When the program adds the numbers it will place them in a memory location called LRGST. each pair added will be compred to the last pair and the largest sum place in memory location LRGST, so when the program is finished it will have the largest sum in :? :? :? ????


Hi Tim,

That sounds like a good homework assignment. Show us what you have so far and when you get stuck we'll help you out.

Regards,
Mike

_________________
- Mike Naberezny (mike@naberezny.com) http://6502.org


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jul 01, 2003 6:00 pm 
Offline

Joined: Fri Jun 27, 2003 8:12 am
Posts: 618
Location: Meadowbrook
For one idea which may help, check out the sorting algorithmns. They tend to use a secondary data space in which the various data items get sorted into. You can go from there in making the results. But its a good starting point, methinks...

_________________
"My biggest dream in life? Building black plywood Habitrails"


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: