Re: EBP going crazy
- From: Bill Marcum <spamtrap@xxxxxxxxxx>
- Date: Mon, 15 Aug 2005 19:35:59 +0000 (UTC)
On Mon, 15 Aug 2005 16:29:14 +0000 (UTC), André Kempe
<spamtrap@xxxxxxxxxx> wrote:
> Hi Folks,
>
> I have the following problem:
>
> My situation is to have a class A, which has a member of class type B.
>
> Member-function a of class A calls b of class B, where b implements some
> inline assembler, and stores the following registers
>
> push ebx
> push esi
> push edi
> push ebp
> push ecx
>
> and at the end restores them via
>
> pop ecx
> pop ebp
> pop edi
> pop esi
> pop ebx
>
> emms ; // reset fp-registers
>
> Before I call b, ebp is set to 0x0012490 after returning it is set to
> 0x15151912!
>
> I'm using VC 6.0. Does anyone know why upon return the ebp register
> contains that ...?
>
Something must be writing into the stack. Care to post the inline asm
code?
--
BOFH excuse #426:
internet is needed to catch the etherbunny
.
- Follow-Ups:
- Re: EBP going crazy
- From: André Kempe
- Re: EBP going crazy
- References:
- EBP going crazy
- From: André Kempe
- EBP going crazy
- Prev by Date: Re: [Clax86list] Re: Why do I need a stack frame to use %xmm registers?
- Next by Date: Re: EBP going crazy
- Previous by thread: EBP going crazy
- Next by thread: Re: EBP going crazy
- Index(es):
Relevant Pages
|