Hi! -------- Original-Nachricht -------- > Datum: Thu, 22 Mar 2012 10:15:36 -0700 (PDT) > Von: Joseph Rose <rose.joseph12@yahoo.com> > An: cc65 mailing list <cc65@musoftware.de> > Betreff: [cc65] OT: SIN/LOG/EXP/SQR calculations? > Sorry about the OT question, but I want to calculate the functions in the > subject heading for future work with graphics. I could probably use other > functions as well. I have only a high-school education; otherwise, I > wouldn't be asking here. :( Here are some assembler sources: http://codebase64.org/doku.php?id=base:floating_point_routines_for_the_6502 More interesting (to me) are the c-sources of softfloat: http://www.jhauser.us/arithmetic/SoftFloat.html Details on the 32-bit float format: http://en.wikipedia.org/wiki/IEEE_754-2008 There's also a mapping of c64 rom routines to cc65 (from sauhund), but the syntax is not very readable, since cc65 has no floating operators then. You can see the problem in a demo app here: http://www.forum64.de/wbb3/board25-coder-unter-sich/board308-programmieren/board29-cross-development/45525-real-zahlen-und-funktionen-im-cc65-nutzen-zur-umsetzung/index3.html#post561059 Ciao, Andreas -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Mar 23 14:57:25 2012
This archive was generated by hypermail 2.1.8 : 2012-03-23 14:57:28 CET