inline asm on VC6 (loading the address of a member var in a register) 
Author Message
 inline asm on VC6 (loading the address of a member var in a register)

my problem is "loading the address of a member var into a register".
Using VC7 i can load the address of a class member variable using
__asm mov eax,[this + member_var_name]

but with VC6 i get compilation error on that line, so i have to do instead:
int i = (int)&this->member_var_name;
__asm mov eax, [i]

Any other solution?


Tue, 06 Dec 2005 16:30:20 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Visual C++ & Inline asm class member access

2. VC6.0 SP4 registers now show load of other crap

3. Help with an inline asm function...please?

4. inline asm

5. about mix power c inline asm

6. gcc and usage of inline asm...

7. Inline asm in GNU C?

8. Help with inline SPARC asm ?

9. Problems with inline asm in Borland C

10. Inline-asm in C compilers?

11. Help!! Visual C++ 4.x and Inline Asm

12. Inline asm (int 10H)?


Powered by phpBB® Forum Software