Show: Object Pascal C++
Display Preferences

E2109 Constant expected (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

The inline assembler was expecting to find a constant but did not find one.

program Produce;

  procedure Assembly(x : Integer);
    mov   ax, x MOD 10


The inline assembler is not capable of performing a MOD operation on a Object Pascal variable, thus the above code will cause an error.

Many of the inline assembler expressions require constants to assemble correctly. Change the offending statement to have a assemble-time constant.

Personal tools
In other languages