Re: [cc65] access C variables from Assembly UIP

From: Oliver Schmidt <ol.sc1web.de>
Date: 2007-02-26 13:39:06
Hi Rich,

> it seems to be a huge pain to make it work with inline 6502.

Inline assembler is targeted towards spot optimizing C code, not
writing assembler programs.

> I think this would be the best way to do it..

I think the best way to do it would be to use the cc65 assembler for
your 6502 coding. It's a feature-rich macro cross assembler running on
a lot of platforms.

It generates relocatable objects files you can link together with the
objects files generated by the C compiler thus having a consistent
memory model.

I personally use it for all type of 6502 development. Even totally
unrelated to C and/or the C library.

Best, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Feb 26 13:39:18 2007

This archive was generated by hypermail 2.1.8 : 2007-02-26 13:39:25 CET