6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 15, 2024 5:58 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Apr 08, 2005 12:58 am 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
Well, after much research, I managed to install and get cc65 running on my Mac.

I did quite a bit of study on how Fink installs packages (BTW: Fink has cc65-2.9.3 available) and managed to get Fink to install cc65-2.10.1 in all the right places and set the proper paths and all that stuff that Unix needs to work properly.

Now I have three more tasks:

1. Find out how to write a library/include file for the AIM65 so I can use the AIM as a target.

2. Write an include file for the 6522 via and find out how to get it included in the compile.

3. Perhaps more difficult, find out how to convert the object output from cc65 into a format that AIM 65 can understand **AND** find out how to move the object files from my Mac to AIM 65.

Any help or suggestions on where to look to find info to help me with my tasks would be much appreciated.

Any help much appreciated.

Later,

AndyD


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 10, 2005 2:47 am 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
I just wanted to update status on my project. I now have cc65 installed on my Mac. I found a way to add info the the compiler to include a type for AIM (not done yet, but at least I know where to start).

I got serial communication working between my Mac and the AIM, my post in the Hardware section on that.

My last (that I know of now) problem is to find a way to convert the object output files to MOS Technology paper tape format. Not that I want to use paper tape, but I can use the paper tape format as a text file to transfer files between my Mac and the AIM, so I can store object and or data files from the AIM on my Mac. I already tested this... I dumped a section of memory from the AIM to paper tape format, did a text file capture with the termial emulation program on the Mac, then cleared a section of memory on the AIM and sent the text file back to AIM and it worked just fine.

So, I need to find how to convert the object file output of cc65 to paper tape format text files so I can use cc65 for develpment on my Mac and use AIM to test programs.

Later,

AndyD


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 10, 2005 8:11 am 
Offline

Joined: Tue Mar 09, 2004 3:43 pm
Posts: 44
Location: Bristol, UK
Just in case you need it, I have a description of MOS Technology paper tape format on my web site:

http://www.gifford.co.uk/~coredump/mosptp.htm

It's from the KIM-1 manual.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 10, 2005 3:02 pm 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
Thanks for the info, but you might want to review it.

My KIM user manual and my AIM 65 manual both say that the last record has 00 for byte count as is shown in this record.

;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC
;0000010001

You must have made a typo (I do it all the time) but it looks as if you accidentially put a $18 for the byte count in your last record.

;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC
;1800010001


I hope you do not take this the wrong way, I'm just trying to help, as I am really very glad for all the help I have received here.


BTW: I noticed that you have a cover of the Rodnay Zaks book. Another dumb mistake on my part, just this year, earlier, I decided that I was thorugh programming, so I donated my copy of Zaks to the local library (which also sells donated books to help suport the library) so someone else could benefit. Well, last month I decided to just check to see if it had been sold, (wanted to buy it back), but alas, it was gone, now I guess it's off to Amazon. ;)




Thanks,

AndyD


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 10, 2005 6:44 pm 
Offline

Joined: Tue Mar 09, 2004 3:43 pm
Posts: 44
Location: Bristol, UK
You are absolutely correct, that '18' should have been a '00'. Thanks for taking the time to check it and letting me know!

As for the Rodnay Zaks book, I often see them on eBay (at least here in the UK). Otherwise, have you tried Abebooks web site?

I'd better update that 'books' page, too, because I recently acquired a copy of Rodnay Zaks' other books, 6502 Applications and 6502 Games. The latter shows a design for a gadget with LEDs and switches that connects to a SYM-1 and acts as a display for the games programs.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 19, 2005 11:33 pm 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
I am finally makikng some headway. I am now starting to gain a limited understanding of cc65 and how to use it. I have a few minor things to do, and one MAJOR thing.

Since I can communicate between my Mac and AIM 65 via the serial port, I can now use a terminal program on the Mac as a control point to the AIM 65.

I have tested transferring date between the Mac and the AIM 65 using text files of the MOS technology paper tape format.

What I need is a way to convert object files output by cc65 to text files of MOS techlology paper tape format.

Has anyone written an object file converter for cc65 to take cc65 object input and output a textfile of MOS technology paper tape format records?

BTW: In creating the paper tape format -- text files -- from AIM 65, I find that there is on slight error. When AIM 65 outputs the data, the last record has the count of all the records, including the terminating record. All the documentation I have seen shows the last record to be only the count of the data records.

Thanks,

AndyD


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu May 26, 2005 3:41 am 
Offline

Joined: Wed Mar 30, 2005 3:59 pm
Posts: 23
Location: So. CA
I seem to be responding to my own posts to report what's happening. Oh, well. Anyway, I have solved the final (maybe, I think) problem. I needed to convert the object output from cc65 to Mos Technology paper tape format text files. I found a super open source program called SRecord, available at Sourceforge. SRecord will convert darn near anything to anything. Among the formats are Motorola S records (surprise), Intel format, Techtroinx, a couple of binary formats and of course the one I needed, Mos Technologies format. If you have a format youneed to convert from - to, check it out, also there seems to be a mechanism to add new converters if one is not there. I posted a question on a listserv and the author of SRecord (no less) sent me private email to answer my Q.

I thought this might help someone else. It looks like a great program. The Project home page is: http://srecord.sourceforge.net/

It was originally written to make files to load into various prom programmers and has lots of features. I hope this will help someone else trying to convert something to something else.

Happy converting.

AndyD


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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: