Hi,
I tried to create some constant in C with #define such as
#define TL0_RECV_START_VALUE 0
And load it into registers. But it seem SDCC can not replace the text with value. How can I do that. Now I put the value into an SFR in C and have the inline assembler to read it back. It seems in efficient.
I don't know whether there is any way to use C preprocessor macros in combination with the old inline assembly syntax, but it should be possible with the C-compliant syntax that uses string constants:
Add some preprocessor stringification magic if you want to work with a literal 0.
Thank!
got compiled to
Awesome!