Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > C64 crossdeveloping suggestions?
2008-09-05 07:02
Optimus

Registered: Jan 2002
Posts: 122
C64 crossdeveloping suggestions?

Yep. I am motivated to start coding something on the C64 again. I need to use some helpful tools that will speed up developing and make things less frustrating. I am searching for crossdeveloping tools on the C64.

I am already considering kick assembler. But I might want to hear more suggestions. Btw,. is there a C64 emulator coming with internal assembler? Something like the thing I use on CPC, the Winape32 emulator/assembler? That would be great!
 
... 66 posts hidden. Click here to view all posts....
 
2008-09-07 13:38
Radiant

Registered: Sep 2004
Posts: 639
ca65 (in the cc65 suite) is an excellent choice of cross assembler if you want to do more fancy/beardy stuff, but the advantages mostly come into play with larger codebases. gvim is my editor of choice, and I use GNU Make for the build system.
2008-09-07 17:45
kamelito
Account closed

Registered: Mar 2006
Posts: 14
RadiantX does CA65 is better than KickAss, I heard that version 3 is planned but don't know the feature list.

Regards
Kamelito
2008-09-07 18:34
kamelito
Account closed

Registered: Mar 2006
Posts: 14
I've read many posts about C64 cross dev but nobody ever recommended Snasm, made by an old DMA design programmer Its bizarre cause this guy is very talented. (dailly.blogspot.com)

Regards
Kamelito
2008-09-07 18:53
Radiant

Registered: Sep 2004
Posts: 639
kamelito: Don't know about that really; I have only looked very briefly at KickAss. How well does it handle things like relocatable code?

My main gripe with ca65 is that the preprocessor language can be a bit odd at times; apart from that I think it's perfect.
2008-09-07 20:00
kamelito
Account closed

Registered: Mar 2006
Posts: 14
RadiantX: there a .pseudopc directive that let you assemble to a specific address while having code be like it was assembled to another.

Regards
Kamelito
2008-09-07 22:13
kamelito
Account closed

Registered: Mar 2006
Posts: 14
I tried CA65 and I got errors, while I think I'm doing no errors.
ld65.exe: Warning: [builtin config](6): Segment `STARTUP' does not exist

I didn't find anything but one msg about it at lemon64 and one at comp.sys.cbm :-(

ca65 -t c64 clearscreen.asm
ld65 -S 4096 -t c64 -o clears.prg clearscreen.o

The file is created I got a clears.prg load ok through Vice but nothing at $1000.
And this error (see above)
Any idea ? (Asmone on the Amiga was easier ;)

Regards
Kamelito

2008-09-08 06:27
Frantic

Registered: Mar 2003
Posts: 1648
cc65/ca65 + linker can be a little tricky to get into in the first place. You have to learn how the linker works, basically and you can't just do "* = $1000" to set the program counter from the code. In that respect KickAss, ACME or something else is a lot easier to get into.

Have you checked the docs?:
http://www.cc65.org/doc/
2008-09-08 06:29
HCL

Registered: Feb 2003
Posts: 728
@kamelito: ca65 generates obj-files, relocatable code. Then later when linking several obj-files they get absolute addresses, just like a C-compiler.

I also recon ca65 needs more setup stuff before you can get running, but i think there is a tutorial in the package..
2008-09-08 11:18
Cruzer

Registered: Dec 2001
Posts: 1048
What Shadow said, although I have on the TODO list to try some of the other tools, although I doubt assembling could get any easier - CTRL+F9, and it pops up in Vice.

Only problem I have with KickAss is that the scripting is too slow to make anything advanced. Don't know if any of the alternative assemblers are better.

2008-09-08 11:58
Zone
Account closed

Registered: Nov 2002
Posts: 7
If you want your code and data to land at certain addresses with ca65, you have to feed the linker with a link configuration file, and compile with eg. `cl65 -C [link file] mysource.s'.

But what the documentation fails to explain is that you have to append "fill=yes" to each memory segment in the link file for it to work as expected. :) It's explained in the FAQ though: http://www.cc65.org/faq.php
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Rub_0201
E$G/HF ⭐ 7
t0m3000/hf^boom!^ibx
stephan-a
fuzzybad
Guests online: 143
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.051 sec.