Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#77 writing assembler directives in c

closed
Maarten Brock
None
5
2011-11-05
2010-09-05
sumeet verma
No

respected sir/ma'am
can someone pls tell me how to define assembly directives in C. i use mide51 ide, sdcc compiler, asem51 assembler. i want to write inline assembly. the sdcc is not recognising EQU directive. e.g EQU var1 r7.
pls help.

Discussion

  • sumeet verma
    sumeet verma
    2010-09-05

    rc5decoder.c, errors with directives

     
    Attachments
  • Maarten Brock
    Maarten Brock
    2011-11-05

    I doubt you're still looking for the answer after a year, but I want to close this at least with some comment.

    SDCC does not use or support assem51 assembler but comes with its own variant of ASxxxx. This assembler use '=' for equates in the following form:
    var1 = r7

    Maarten

     
  • Maarten Brock
    Maarten Brock
    2011-11-05

    • assigned_to: nobody --> maartenbrock
    • status: open --> closed