[DUG] Assembler

Todd Martin todd.martin.nz at gmail.com
Thu Sep 23 13:51:43 NZST 2010


Hi

The following code appears in Grids.pas

{ Jump to TSparsePointerArray.ForAll so that it looks like it was called
  from our caller, so that the BP trick works. }

function TSparseList.ForAll(ApplyFunction: Pointer {TSPAApply}):
Integer; assembler;
asm
        MOV     EAX,[EAX].TSparseList.FList
        JMP     TSparsePointerArray.ForAll
end;

Does anyone know what the first line does?
More importantly, does anyone know how to convert the Intel style
assembler code to AT&T?

Thanks,
Todd






More information about the Delphi mailing list