Code:
begin
AInt := Args[i];
asm push AInt; end;
end;
the code above works in all versions of delphi, I have set {$asmmode intel} but it seams the push is not working, does anyone have an opinion why that could be.
Cheers
PS: I am working x64 windows version of lazarus 0.9.30
I don't have a x64 version available to test, put try to replace "push" with "pushq".
You might also want to read
this regarding the calling convention used on 64-Bit Windows systems (also note the second last paragraph about "push" and "pop").
Regards,
Sven