+1 1594 extern bit GBinitDn ; // this bit is set when initialize is done *** _____________________________________^ *** ERROR #A50 IN 1594 (msdefs.h, LINE 89): BIT-ADDRESS EXPECTED
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)
well it recognizes extern unsugned char why not extern bit also BIT-ADDRESS EXPECTED does not indicate it has a problem with extern bit Erik