Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/02/01 14:05
Read: times


 
#9679 - C-code
In 8052 assembler code you can define data labels like:
"Register1 Data 30h"
Later in your program you can use Register1 like: "mov a,Register1"
Is there somebody who know how I can do this in C - code ?
After compiling I get always the code:
MOV DPTR,#Register1
MOVX A,@DPTR
But I don't like this.
I would like that it is like;
MOV a, Register1
Your solution please ?

Regards,
Stefan Leus.



List of 6 messages in thread
TopicAuthorDate
C-code            01/01/70 00:00      
RE: C-code            01/01/70 00:00      
RE: C-code            01/01/70 00:00      
RE: C-code            01/01/70 00:00      
RE: C-code            01/01/70 00:00      
RE: C-code            01/01/70 00:00      

Back to Subject List