Hi again I forgot some vital information The code below is borrowed (stolen :) from the P89c51RD2.h file that is in the sdcc libraries. Could you please tell me if these definitions are sensible or not?
Cheers Gudjon On Monday 18 June 2007 19:46:51 Gudjon I. Gudjonsson wrote: > Hi > I do have a header file with lines similar to this. > __sbit __at (0x8F) TCON_7; > #define TF1 TCON_7 > However the the problem arises when I use inline assembler. Then I get the > following error: > ?ASlink-Warning-Undefined Global 'TCON_7' referenced by module 'write_01' > > If I change the assembler code to using > > _TCON_7 instead of TF1 everything works charmingly. Since I am going to > send my header file to the project, should I not change lines similar to > __sbit __at (0x8F) TCON_7; > #define TF1 TCON_7 > > to > > __sbit __at (0x8F) TF1 > > ? > > Regards > Gudjon > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user