I am currently working on a legacy product in Delphi that includes some inline assembly, I need help understanding what the function does and how to convert it to Pascal.
The code is:
function lswap(i : longint) : longint; assembler;
asm
{$IFDEF CPU64}
mov eax,ecx
{$ENDIF CPU64}
db $0f,$c8 {bswap eax !! requires at least 486 CPU!!}
end;