Re: c++ inline assembler and oop



Hi Frank,

Although I've not done this class stuff but I think you can access
class members (instance members), similar to the way you access a
structure members.

e.g.If EBX points to a [Vec3] instance, so in order to refer to [y]
member variable, use:

mov EAX, DWORD PTR [EBX].y

The above statement will copy value of [EBX]->[y] into [EAX] register

Thanx,
Ashish Shukla alias Wah Java !!

Wah Java !!

.



Relevant Pages

  • Re: Object Initialization Question
    ... > If class members are not explicitly initialized in a ... > constructor, are they zero-initialized OR are their contents undefined ... The Standard says that the behaviour is to default-initialise the members ... omitted member is of a POD type, ...
    (comp.lang.cpp)
  • 2.0 Membership APIs
    ... Has anybody mapped the 2.0 class members to a relational schema? ... Architectural & e-Business Consulting -- Software Development ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Structures
    ... Care to say more about what they are, ... In C++ classes and structures are the same, except that class members ... are private by default and structure members are public by default ...
    (comp.lang.python)
  • Re: problem with macros
    ... of at least one compiler that aligns all structure members to at least a ... Even for members smaller than 4 bytes? ... It also aligns regular variables ...
    (comp.lang.c)