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

preset of a code-byte

Hi,
I would like to preset a byte at a specific adress in the code memory with a specific value.
code char BYTE=0x55; //works, but adress not specified
code char BYTE _at_ 0xF000; //works, but value not specified
code char BYTE=0x55 _at_ 0xF000; //leads to Sytanx Error

How do I tell the Compiler to preset the byte in the code memory?

Thanks,
Lutz

Parents
  • The manual states two limitations of the _at_ keyword:
    "1. Absolute variables cannot be initialized."

    So you can't do it that way.

    I'm sure this was discussed not so long ago - use the Forum Search (link in the left sidebar)

    Get the Linker to fix the location?

Reply
  • The manual states two limitations of the _at_ keyword:
    "1. Absolute variables cannot be initialized."

    So you can't do it that way.

    I'm sure this was discussed not so long ago - use the Forum Search (link in the left sidebar)

    Get the Linker to fix the location?

Children