This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sensor Controller studio 提示的immediate value out of range :"0"(超出立即数范围:0)是什么意思?什么原因?



Sensor Controller studio 提示的immediate value out of range :"0"(超出立即数范围:0)是什么意思?什么原因?

  • 下面的链接内有相关说明

    software-dl.ti.com/.../assembly_language_reference.html

    To allow larger than 16-bit intermediate values, expression calculation works on 32-bit signed integers.

    The assembler does not automatically mask out most significant bits when calculating expressions for immediate value operands. It will instead generate an error “Immediate value out of range” if the value is too high or too low. Manual masking (using the & operator) is therefore required when using:

    Negative values with unsigned immediate value operands
    The ~ operator, which inverts all 32 bits in the expression calculation