We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
here is the solution about the question in thread http://www.keil.com/forum/msgpage.asp?MsgID=4407
;ASM-File 1 ... public SYMBOL SYMBOL equ 5 ...
;ASM-File 2 ... extrn number (SYMBOL) ... mov a,#SYMBOL ...
// C-File ... extern SYMBOL unsigned char myVar; myVar = (unsigned char)&myConst; ...
Sorry, must be SYMBOL instead of myConst Chris
Your examples show the public declaration in assembler. How to declare "PUBLIC" number in C so that it can be used in assembly? Thanks