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

edit.c needs optimizer turned off for all inline asm #74

Open
bobbimanners opened this issue Sep 13, 2022 · 1 comment
Open

edit.c needs optimizer turned off for all inline asm #74

bobbimanners opened this issue Sep 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bobbimanners
Copy link
Owner

In edit.c there is a bunch of inline asm. the cc65 optimizer needs to be turned off (on a per function basis) using:

#pragma optimize (push,off)
...
#pragma optimize (pop)

Doing this naively results in the code overflowing the LC segment, so some refactoring is required.

If I don't fix this, most likely the code will break with newer cc65 releases.

@bobbimanners bobbimanners added the bug Something isn't working label Sep 13, 2022
@bobbimanners bobbimanners self-assigned this Sep 14, 2022
@bobbimanners
Copy link
Owner Author

It seems to work okay for now, but this really should be addressed to avoid problems in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant