Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug 6809 floating point support #594

Open
EtchedPixels opened this issue Mar 9, 2018 · 6 comments
Open

Debug 6809 floating point support #594

EtchedPixels opened this issue Mar 9, 2018 · 6 comments

Comments

@EtchedPixels
Copy link
Owner

We build almost all the relevant library code now but there are a few that don't built and we also don't seem to get correct answers for many cases.

@beretta42
Copy link
Contributor

screenshot_from_2018-03-10_020041

Disregard the quick and dirty float printf; its a start.

@EtchedPixels
Copy link
Owner Author

Looks like a good start for floats. Double will be the one that's going to be buggy I suspect - and because of the way ANSI C is defined a float passed in varargs gets turned into a double.

@beretta42
Copy link
Contributor

We got gcc NOT to issue any 64 bit calls., successfully building code with "double". (Which is still 32 bits, btw) Many math.h functions work, but powf() and pow() go into la-la land and crash fuzix. We either broke something or found a sleeper bug.

@EtchedPixels EtchedPixels added the 0.3 Floppy And Debug label Jul 21, 2018
@EtchedPixels
Copy link
Owner Author

Seems to work better for me now I've taught it that double is 32bit not 64bit (oops)

@beretta42
Copy link
Contributor

I was working on cleaning up compiler warnings and found many warnings regarding shifting a 32 int 63 times.

@EtchedPixels
Copy link
Owner Author

Deferring future work on this until the new compiler

@EtchedPixels EtchedPixels removed the 0.3 Floppy And Debug label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants