Lazarus doesn't understand TYPE operator in assembler code lazarus / 21-General ---------------------------------------------------------------------- andy-cat · 2022-12-02 06:47 Hello, Lazarus doesn't understand TYPE operator in assembler code:     cmp     EAX, dword ptr [EDI + ECX * TYPE Int64 + $04]    xxxxxxx.pas(1704,41) Error: Invalid reference syntax Does anyone know how to solve this problem? This is the working code from delphi. Documentation: 4.3.4 TYPE Operator The TYPE operator returns the size, in bytes, of a single element of a variable. For example, the TYPE of a byte equals 1, the TYPE of a word equals 2, the TYPE of a doubleword is 4, and the TYPE of a quadword is 8. ---------------------------------------------------------------------- Red_prig · 2022-12-02 07:54 SizeOf(Int64) worked? ---------------------------------------------------------------------- andy-cat · 2022-12-02 08:26 No, it does not work. Same error message. ---------------------------------------------------------------------- jamie · 2022-12-02 11:33 make a constant outside somewhere? Const TYPE_INT64 = 8; ? ---------------------------------------------------------------------- ASerge · 2022-12-02 20:59 From docs Intel syntax: QuoteThe Scaling value must be a value, and not an identifier to a symbol. Examples: const myscale = 1;  ...  mov al,byte ptr [esi+ebx*myscale] -- not allowed. use: mov al, byte ptr [esi+ebx*1]