Re: [cc65] ca65 syntax problems

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-11-05 14:02:21


On Sun, Nov 04, 2001 at 12:13:33PM +0100, groepaz wrote:
> and seriously, i still want a traditional .org directive (thats one
> thing really missing in ca65 IMHO) ... its kinda annyoing to eg write
> drivecode embedded in your sources this way ;/

There is no way to have a traditional .org directive if you have relocatable
code. And, seriously, I think that having relocatable code is far more useful
than an old style .ORG directive.

> actually, the lack of certain features (traditional .org and
> prog-count assignment in particular) is what scares a lot of people i
> have talked to ....

Both are non issues. If you use one file (and one or more include files as is
common use with other assemblers) .ORG works fine for most things. And program
counter assignment is possible using one or more of the .feature commands.
Using

        .feature pc_assignment, dollar_is_pc

things like

        $ = $200

are completely legal.

The code for the 1541 that comes with cbm4linux was originally written for
xa65, and it translates without changes using ca65 with the following feature
set enabled on the command line:

        --feature labels_without_colons
   	--feature pc_assignment
   	--feature loose_char_term

You are right, having some more emulation features would be nice, but on the
other side, ca65 will probably work with more different styled input files
than any other assembler out there.

> mmmh i have started one when i have translated some of my old sources
> to ca65..... its very incomplete/inaccurate by now i guess, but i can
> mail it over if you like.

That would be nice, even if it is incomplete.

> BTW... different thing... is there already some header file that
> defines an api for serial-port access?

Yes, there is such a file, it is called rs232.h. There is also the
corresponding library for some machines including the C64, it was used by the
uIP TCP/IP stack and web server.

Having support for the silver surfer would be nice, because the 16550 chip it
uses is far more advanced than the usual 6551. With the silver surfer, using
115200 bps on the slip line should be easily possible with even more cycles to
spare than with the Swiftlink at 38400. But I've myself written more than one
driver for the 16550 chip on different platforms, so if it is too much work to
adapt your code, I don't think it would be a problem for me to write a support
module for the silver surfer - provided that I will get the hardware.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:43 CET