I am writing a small C function which is suppose to replace the assembly function My rest code is written in assembly and the assembler (asm51) is used The data declaration is done as
t33 EQU 53H t34 EQU 54H t35 EQU 55H t36 EQU 56H t46 EQU 0A7H
MOV A,t32 CJNE A, #1FH,Chk
t32 DATA 52H t33 DATA 53H t34 DATA 54H t46 DATA 0A7H
extern unsigned char t32;
MOV R0,#t46
"Now here the t32 is a macro definition" So it's not a variable! You need to #define it in a 'C' header file; then both C51 & A51 can share the header file. See the Manuals, and do a Search here - we've been through it all very recently!
No when i went through the keil's assemblers user's guide the EQU & SET are refered as macro definers As you can see
MOV A,t32
Andy i tried posting the same message on 8052 as you were logged in the main problem is the program is approved by the departments and attached in ISO documents so i cannot change the source code addresses. regards sachin
View all questions in Keil forum