i have some registers declared in external data memory which i want to add in my assembly code. so i used MYREG XDATA 0xF300 but when i use this MYREG in other places it shows me error as DATA ADDRESS EXPECTED. what is the correct usage of xdata..please help me... i have searched but nowhere a proper explanation is provided. if this is not the proper usage then please tell me how to use registers from external data memory in my code.
How are you doing it now? You'd need to access it indirectly via DPTR as I recall.
http://www.keil.com/support/man/docs/a51/a51_wp_xdata.htm