 20.12. ,     
                

#include <stdio.h>
			
// naked-,   ,  
//      !
__declspec( naked ) int MyFunc()
{			
__asm{			
 	lea ebp, [eax+ecx]	;   EBP  EAX  ECX
 		;      ,  
 		;      
 		; ,     
 		;       
		;   /
 	ret		
 	}		
}			
			
main()			
{			
 	int a=0x666;		
 	int b=0x777;		
 	int c;		
__asm{			
 	push ebp		
 	push edi		
			
 	mov eax,[a];		
 	mov ecx,[b];		
 	lea edi,c		
			
 	//   MyFunc   ,   
 	//    ,   ""
 	call MyFunc;		
			
 	//    EBP  
	//      
 	mov [edi],ebp		
			
 	pop edi		
 	pop ebp		
 	}		
			
 	printf("%x\n",c);		
}			
