Re: [cc65] Closing down - FP support?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2013-03-18 18:46:24
Good evening!

On Mon, Mar 18, 2013 at 10:12:08AM -0700, LJ Coletti wrote:
> Well, I had just registered for the CC65 mailing list and guess what
> my first message (below) was? Arghhhh!!!

Which means you should have subscribed earlier:-)

> My question, do you have any ideas for implementing FP support for
> CC65 on the Atari (presumably using the FP routines in ROM and BASIC
> - or not?) that is compatible with the current version of CC65
> (cc65-sources-2.13.3.tar.bz2)?

If you can live with encapsulating stuff within standard C functions, which
means using fsub(), fadd(), fmul(), fdiv() and similar then the solution is
probably easy: Just write a library for the routines. If it's a library for
just one platform, call the ROM routines. You will have to invent something to
use literal float values, one idea is to parse strings, another is to encode
them in hex. This depends on the floating point format used of course.

If you want to have native support then you will have to extend the compiler
plus write the necessary library routines.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 Mar 18 18:46:33 2013

This archive was generated by hypermail 2.1.8 : 2013-03-18 18:46:36 CET