I create a C51 project and write just one A51 subroutine(for speed).I define some SFR in the header file just like sbit FLASH_CS = P1^1; sbit A19 = P3^5; sbit A18 = P3^4; sbit A17 = P3^3; sbit A16 = P3^2; How can I declare them in the A51 subroutine?It seems that the EXTRN directive can't help me!
Mr.Andrew Neil: Thank you for help.But the A51 statment EXTRN BIT (FLASH_CS) doesn't work.Keil C tell me that FLASH_CS is unresolved external symbol.How can I use the C header file directly?Does A51 have an include directive?Beg your help.Many thanks!
"Does A51 have an include directive" Check in the A51 Manual
"Keil C tell me that FLASH_CS is unresolved external symbol" That's not 'C' (the Compiler) - that's the Linker telling you. That means that you have external declaration(s) without a public definition