bobbimanners / emailler

Email and Usenet suite for the Apple //e or GS with Uthernet-II ethernet card
http://bobbi.epizy.com
Other
30 stars 5 forks source link

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

Open bobbimanners opened 2 years ago

bobbimanners commented 2 years ago

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 commented 2 years ago

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