cc65 CRT help Needed

You need an actual VIC.

Moderator: Moderators

brain
Vic 20 Nerd
Posts: 538
Joined: Sun Jul 04, 2004 10:12 pm

cc65 CRT help Needed

Post by brain »

Anyone with cc65 2.18 working 8K or 16K Cartridge project examples that use conio.h or other libraries? If not, anyone interested in helping a poor C developer who needs to write a utility cart program for the VIC-20 get such an example project created? I have 3 projects (8K Cart, 16K App, and 16K Cart) I can put online if folks are keen to help. I gave up 5 years ago (2014), but I just really need to get this off my list of project failures.

Jim
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: cc65 CRT help Needed

Post by funkheld »

Hi good afternoon.
It would be nice if you could create a functional cfg
which can also be used with the 28kb.
greeting
groepaz
Vic 20 Scientist
Posts: 1187
Joined: Wed Aug 25, 2010 5:30 pm

Re: cc65 CRT help Needed

Post by groepaz »

it shouldnt be hard to do... isnt there a cartridge config for C64 already? should work pretty much the same for vic20, except some adjusted memory addresses of course. the biggest challange is probably to come up with a scheme to deal with those holes in the memory map.

poke me again after we pushed out that VICE release :)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
brain
Vic 20 Nerd
Posts: 538
Joined: Sun Jul 04, 2004 10:12 pm

Re: cc65 CRT help Needed

Post by brain »

I thought so, and Oliver tried to help. I have his examples, but they never did work, and I got busy with other things. I can put them up on github or somewhere. I believe they are massaged from the 64 examples, but could be wrong.
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: cc65 CRT help Needed

Post by funkheld »

if one time could produce a suitable cfg for the vic20 for different memory sizes (3,6,8+ kb) a problem would be solved by few for the vic20. one has then already a start to deal again with cc65.
Maybe somebody can do it. I think there is an initial beginning but it does not really work. because he only runs on a certain vervion of the cc65.

you can not take the c64.
The biggest problem is a cfg for the vic20



greeting
Thank you.
groepaz
Vic 20 Scientist
Posts: 1187
Joined: Wed Aug 25, 2010 5:30 pm

Re: cc65 CRT help Needed

Post by groepaz »

making a config for expanded vic20 (as in ram expansion) is trivial, just move the memory top/bottom as needed
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: cc65 CRT help Needed

Post by funkheld »

Hi good afternoon.
For me it's not so easy with 70 years.
especially as even younger ones have tormented with it.

can you please make me a cfg for over + 8k or 28k.
and I recommend a cc655 what synonymous with it runs.

The CC65 are very picky with the CFG. one cc65 works with it and the other one does not.

Thank you for your effort, I would be very helpful.

Thank you.
greeting
brain
Vic 20 Nerd
Posts: 538
Joined: Sun Jul 04, 2004 10:12 pm

Re: cc65 CRT help Needed

Post by brain »

Groepaz: Poke... :-)
User avatar
ops
Vic 20 Dabbler
Posts: 88
Joined: Mon Feb 19, 2018 11:25 am
Location: Finland

Re: cc65 CRT help Needed

Post by ops »

I just committed to GitHub a cart stub that I made some time ago when playing with CC65. There is probably room for improvement but I hope this gets you going.

https://github.com/ops/vic-cc65-cart
groepaz
Vic 20 Scientist
Posts: 1187
Joined: Wed Aug 25, 2010 5:30 pm

Re: cc65 CRT help Needed

Post by groepaz »

yay! would be nice getting this into the main repo then!
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: cc65 CRT help Needed

Post by funkheld »

Hi good afternoon.
how are you a professional.

i need a cfg and crt0.s , where the program starts at adr 8192
and I can make graphics for the vic20 from adr 4352.

I have set memory:
8k, 8k, 8k and 8k from adr $ a000
and the fixed memory of 3.5k

you can please help me as a specialist.

Thank you.
greeting
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: cc65 CRT help Needed

Post by funkheld »

hello, error in this programm:

https://github.com/ops/vic-cc65-cart

------------------------------------------
D:\cc65\pebi-c>cl65 -C cart.cfg -o cart.bin cart.c crt0.s
ld65.exe: Error: cart.cfg(2): Attribute expected
------------------------------------------

greeting.
User avatar
ops
Vic 20 Dabbler
Posts: 88
Joined: Mon Feb 19, 2018 11:25 am
Location: Finland

Re: cc65 CRT help Needed

Post by ops »

Try updating you compiler. I'm using the latest from GitHub.
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: cc65 CRT help Needed

Post by funkheld »

Hi, Thank You.

what is that a mistake please.

greeting
Attachments
cc65.jpg
User avatar
ops
Vic 20 Dabbler
Posts: 88
Joined: Mon Feb 19, 2018 11:25 am
Location: Finland

Re: cc65 CRT help Needed

Post by ops »

You must disable all memory expansions.
Post Reply