From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-17 10:11:45
Hi!
On Tue, Jun 17, 2003 at 12:41:19AM -0600, Tom Watt wrote:
> Is it possible to use cc65 to compile just a routine that is usable from
> either BASIC, or from within a ML program? I would like to make some
> functions that work on top of the Swiftlink routines, but still needs to
> be called from within a ML or BASIC program.
This can work in most cases, but what is needed to make it work depends a lot
on the actual routines used, so there is no easy and portable way. Most
routines of the C library will use a set of zero page locations and expect
some of them to be setup in a special way (the argument stack pointer). Other
routines use the heap or other facilities. So your program has to take care
about the necessary setup.
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.
This archive was generated by hypermail 2.1.3 : 2003-06-17 10:11:52 CEST