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

EXTRN NUMBER () in C

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;
...

0