This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MOVX

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

Parents
  • 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'...

Reply
  • 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'...

Children
No data