We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I want to check if there is an equivalent instruction of the MOVX at the C language.
I tried doing in-line assembly with no luck.
Any assistance is appreciated
unless you have a very good reason to be hacking with absolute addresses, don't do it.
simply define a 'C' variable, and use the xdata keyword, as Erik showed. you can also use the _at_ keyword, if you need as specific address.
this way, the tools know what you're up to; XBYTE circumvents this, so you have to ensure that the tools won't use the address for something else...
There's an old saying that goes, "a Real Programmer can write FORTRAN in any language" - the OP seems to be trying to write assembler in 'C'...