Hi I am using inline assebmly in my C program i have a global variable unsigned int length; I want to access this variable in my inline assembly routine using direct addressing. How can i find the memory location of this variable, so that i can access it. Thanx Faisal
Hi, Faisal, It is easy, for example: unsigned int YourVariable; void OneOfYourFunctions(void) { #pragma asm mov YourVariable, #0x55 //for upper part mov (YourVariable + 1), #0xAA //for lower ... #pragma endasm } Regards, M.
Hi Mikhail Thanx for your help.It solved my problem. Regards Faisal