Mail Archives: djgpp/1998/03/19/15:39:46
"Sérgio Vale e Pace" <space AT gold DOT com DOT br> wrote:
> Somebody ou there can tell me how can I access a class menber from
> assembler, I writing a class and I was using a normal C++
> menber-function to the class menbers, now I'm trying to translate some
> of this functions to assembler to use the test bit facility, and I can't
> figure out how to access the class menbers.
The best thing in this cases is just to take a look to the assembler generated
by the compiler. So make this call in C++ and compile with the -S switch and
look in the .s file generated by the compiler.
But when using C++ classes under assembler you must be carefull, specially when
you change things in the class (like a prototype of a member).
Don't foget to pass the object as first parameter to the member!
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
CQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -