??? 08/17/06 06:50 Read: times |
#122415 - undefined varibales Responding to: ???'s previous message |
Kuldeep Singh said:
folowing is the code used to call function "function" from assembly but it gives error of undefined varibales EXTRN CODE (function) EXTRN DATA (?function?BYTE) EXTRN BIT (?function?BIT) MOV R6,#HIGH intval MOV R7,#LOW intval MOV R7,#charconst Please use the 'PRE' and '/PRE' tags to format your code! See: http://www.8052.com/forum/read.phtml?id=120609 Exactly what symbols give you "undefined" errors? Are these Assembler errors, or Linker errors? As far as I can see in the code you presented, there are no definitions for intval, charconst, etc - which would obviously cause "undefined symbol" errors! When linking 'C' and assembler, all your public symbols must follow the C51 naming convention. http://www.keil.com/support/m...egname.htm Remember that 'C' is case sensitive... |
Topic | Author | Date |
calling c function from assembly | 01/01/70 00:00 | |
More reading required | 01/01/70 00:00 | |
AsmCallC | 01/01/70 00:00 | |
Absolute addresses?? | 01/01/70 00:00 | |
legacy | 01/01/70 00:00 | |
not really | 01/01/70 00:00 | |
NOREGPARAMS | 01/01/70 00:00 | |
Keil example | 01/01/70 00:00 | |
undefined varibales | 01/01/70 00:00 | |
Wouldnt it be easier... | 01/01/70 00:00 | |
Eh??? | 01/01/70 00:00 | |
inline | 01/01/70 00:00 | |
what I do and recommend![]() | 01/01/70 00:00 |