Re: [cc65] Any interest in GameCartVic?

From: Groepaz <groepaz1gmx.net>
Date: 2009-01-20 15:52:22
On Dienstag 20 Januar 2009, Jonathan MASUR wrote:
> I think the NES libraries for CC65 were just rushed out of a quick
> modification from the C64 ones and are not suitable to write games.

no, they were never ment to be used to write games :) the nes library only has 
some basic screen output for text, and joystick input. for a game, you will 
surely need your own gfx stuff.

> I wish there were a way to make cool games for the NES in C. CC65 would
> have to be told to output more optimised code I'm afraid (I think the
> indirect stack adressing looks ugly and sluggish), but more importantly,
> the libraries should be completely rewritten so that they are actually
> workable as a base to code actual games in C (even if parts of them
> would have to be done in assembly anyway).

if you want to write games, you pretty much have to roll your own libraries 
for screen i/o etc yourself anyway. (and anything "cool" would almost 
certainly require huge parts of it beeing in asm) the runtime of cc65 is 
pretty much as good as it can get, and i doubt you can gain much by changing 
fundamentally how it works (except you'll surely get tons of interisting bugs 
=P)

> I guess a way to have optimised code even with C is to use globals and
> fastcalls as much as possible (and use locals only if you can't come
> with any global variable to do the work). But in the end you'd end up
> with less portable code and would still run under variable conflicts
> which are the main drawbacks of assembly.

but like you said, its pretty much the way to do it. the 6502 just isnt a cpu 
that can run compiled code very efficiently, for example due to the limited 
stack. (and no, it doesnt really work without a software stack, except for 
very trivial programs maybe)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

'man' is short for 'manual' because it's very short, for a manual.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 20 15:51:37 2009

This archive was generated by hypermail 2.1.8 : 2009-01-20 15:51:39 CET