How can I access the Public property via BASM?

From: alphax (graphcoloring_at_yahoo.com.cn)
Date: 12/02/04


Date: Thu, 02 Dec 2004 14:02:07 +0800

Hi, fastcoders

I has a problem with BASM,

assume there is a unit and declaration:

/////////////////////////////////
unit Unit1;

interface

type
   TObj = class
   private
     fProp1: Integer;
   public
     property Prop1: Integer read fProp1;
   end;

implementation

edn.
/////////////////////////////////

and I want to direct access the Prop1 in other unit via BASM,

/////////////////////////////////
unit Unit2;

interface

implemenation
uses
   Unit1;

procedure BASMProc;
var
   Obj: TObj;
asm
   ...
   mov eax, Obj.Prop1 //this line can not pass the compilation,
                         //how can I access it???
end;

end.
/////////////////////////////////

thanks



Relevant Pages