View Single Post
Old Jan 11th, 2006, 9:24 PM   #1
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
Visual c++ inline assembly

How do i stop vc++ from adding default inline codes at the start and end of functions?

e.g. my code
__declspec(dllexport) __stdcall XY(ST1*param1){
	__asm{
		mov ecx, 0x06;
		mov	esi, [param1];
		mov edi, [local1];
		rep movsd;
	}
}
gets converted into
 _XY@4:
  		push	ebp
  		mov	ebp,esp
  		push	ebx
  		push	esi
  		push	edi
  		mov	ecx,00000006h
  		mov	esi,[ebp+08h]
  		mov	edi,[L100075C0]
  		rep movsd
  		pop	edi
  		pop	esi
  		pop	ebx
  		pop	ebp
  		retn	0004h

I mean...i know it needs those...but i want to do them manually.
Thanks

win Xp, Visual c++ 6.0
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote