This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

.h in assembly

.h in assemblym works beautifully as far as #define, sfr and sbit being useful in assembly.

Now I have a case of conditional compile that I need reflected in an assembly module. I have tried to make the assembly IF and $IF work based on a #define.

Using IF it works if I do a #define 1 or #define 0, that, however wil require replacing all #ifdefs in the C. $IF seems not to react to #define

any suggestions?

Erik

Parents
  • "If you do not know which word to search on (I used a51 and conditional) you will get nowhere."

    I would have thought that looking in the A51 manual chapter entitled 'Macro processor' subsection 'C preprocessor' was fairly obvious, really. Using 'a51' as a search term in the a51 manual also seems a bit daft.

    Or did it not occur to you to look in the manual?

Reply
  • "If you do not know which word to search on (I used a51 and conditional) you will get nowhere."

    I would have thought that looking in the A51 manual chapter entitled 'Macro processor' subsection 'C preprocessor' was fairly obvious, really. Using 'a51' as a search term in the a51 manual also seems a bit daft.

    Or did it not occur to you to look in the manual?

Children