DelphiTools – BASM may not be in the Delphi 64 preview, but a proof of concept of “BASM-for-DWS” is now available for DWScript in the SVN! It builds upon recently introduced “language extensions”, to allow “asm” blocks, which will be pre-parsed (to allow BASM-like references to local variables), and then fed to NASM for actual assembling (which you’ll need to download). const cOne = 1.0; function RSqrt(x : Float) : Float; begin asm // Result := 1/Sqrt(x); fld x; fsqrt; fld cOne; // could have used fld1 here fdivr; fstp Result; ...
Visits by Source
Users who voted for this posting