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.