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

help

code segment:

              ...
        EXTRN   NUMBER (MAX_NUM)


        DS      MAX_NUM


        END

another code segment:

        PUBLIC  MAX_NUM
        MAX_NUM EQU     8

when i assembled and linked these codes,
there was an error:

        Build target 'test'
assembling test.asm...
test.asm(13): error A28: ABSOLUTE EXPRESSION REQUIRED
Target not created

How did it hanppen?

Parents Reply Children
  • MAX_NUM EQU     8
    


    Look in the assembler manual what EQU means - it declares an assembly-time constant, not a run-time variable. The linker on the other hand processes run-time variables.

    By the way: No toolset? Not related to any processor architecture? And the descriptive summary "help"?