delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/19/15:39:46

Message-Id: <m0yFm5a-000S2nC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: "S+rgio Vale e Pace" <space AT gold DOT com DOT br>, djgpp AT delorie DOT com
Date: Thu, 19 Mar 1998 17:41:26 +0000
MIME-Version: 1.0
Subject: Re: class menber in assembler
In-reply-to: <3511673A.8C63C6B5@gold.com.br>

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019