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
  • The error message is telling you that an absolute expression is required.

    You did not say on which file the error was reported, but I would think it is from the:

      DS  MAX_NUM
    

    The expression you gave results in a relocatable value and not an absolute value; hence the error.

    Why not put the EQU into an include file and include that into your test.asm module?

Reply
  • The error message is telling you that an absolute expression is required.

    You did not say on which file the error was reported, but I would think it is from the:

      DS  MAX_NUM
    

    The expression you gave results in a relocatable value and not an absolute value; hence the error.

    Why not put the EQU into an include file and include that into your test.asm module?

Children
More questions in this forum