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

Need a "decimal" datatype. #51

Open
AwesomeDolphin opened this issue Nov 24, 2024 · 1 comment
Open

Need a "decimal" datatype. #51

AwesomeDolphin opened this issue Nov 24, 2024 · 1 comment

Comments

@AwesomeDolphin
Copy link

This is, admittedly, not a C datatype, but many of the 65xx targets have a decimal mode in hardware, and it would be nice to have type-safe access to it.

@hth313
Copy link
Owner

hth313 commented Nov 24, 2024

It is unlikely I will find time for such feature in C.

You can accomplish it to some degree with inline assembly and macros.
A better way would be to have a C++ wrapper which would allow operator overloading and type safety. However, I have not yet enabled C++.

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