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

more on using .h and assembly

                +1  1594     extern bit  GBinitDn    ; // this bit is set when initialize is done
*** _____________________________________^
*** ERROR #A50 IN 1594 (msdefs.h, LINE 89): BIT-ADDRESS EXPECTED

Is there a way around this one? By the way the address is a bit address.

as you may have guessed I am in the process of consolidating the defines for a mixed project

Erik

Parents
  • The assembler isn't supposed to recognize C-style variable declarations, AFAICS. So you'll have to (ab)use the prepocessor, like this:

    #if C_SOURCE
    # define BIT_DEC(name) extern bit name;
    #elif ASM_SOURCE
    # define BIT_DEC(name) EXTRN BIT (name)
    #else
    # error What??
    #endif
    
    VAR_DEC(bit, GBinitDn)

Reply
  • The assembler isn't supposed to recognize C-style variable declarations, AFAICS. So you'll have to (ab)use the prepocessor, like this:

    #if C_SOURCE
    # define BIT_DEC(name) extern bit name;
    #elif ASM_SOURCE
    # define BIT_DEC(name) EXTRN BIT (name)
    #else
    # error What??
    #endif
    
    VAR_DEC(bit, GBinitDn)

Children