Re: New three versions of C64 source code

From: Spiro Trikaliotis <ml-cbmhackers_at_trikaliotis.net>
Date: Sat, 13 Dec 2014 21:10:46 +0100
Message-ID: <20141213201046.GD1853@hermes.local.trikaliotis.net>
Hello,

* On Sat, Dec 13, 2014 at 02:24:23PM +0100 Kajtár Zsolt wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> > That's why the macros capability of ca65 comes very handy:
> > 
> > init_token_tables
> > 
> > keyword_rts "END", bEND, TokEnd keyword_rts "FOR", bFOR, TokFor 
> > keyword_rts "NEXT", bNEXT keyword_rts "DATA", bDATA .ifdef CONFIG_FILE 
> > keyword_rts "INPUT#", bINPUTN .endif keyword_rts "INPUT", bINPUT 
> > keyword_rts "DIM", bDIM2 keyword_rts "READ", bREAD [...]
> > 
> > using appropriate macros, segments and the linker file, are very nice. 
> > You do not have to think about any special handling.
> 
> Could you create an updated version of the ca65 KERNAL sources which shows
> off how to use linker files, segments and macros in a nice and effective way?

The code above is already there and compiles. Just get it from git with

 git clone http://cbmrom.trikaliotis.net/ cbmrom.spiro

to put it into a cbmrom.spiro/ directory.


There is still much to do, because I am lacking the time to progress.
Anyway, I hope you get the idea.

The linker files and segments are an extremely powerfull tool. Having
used good assemblers before, I would never use something that does not
support these features. I do not know any assembler but ca65 the
supports these things for the 6502, though.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/

       Message was sent through the cbm-hackers mailing list
Received on 2014-12-13 21:00:50

Archive generated by hypermail 2.2.0.