From 0bcb2e9108d257287109518b2a5da154ee5348ad Mon Sep 17 00:00:00 2001 From: jpd002 Date: Fri, 28 Dec 2007 03:00:42 +0000 Subject: [PATCH] Fixed basic block epilogue/prologue portability git-svn-id: http://svn.purei.org/purei/trunk@210 b36208d7-6611-0410-8bec-b1987f11c4a2 --- Source/BasicBlock.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Source/BasicBlock.cpp b/Source/BasicBlock.cpp index 0920d91a..620ab136 100644 --- a/Source/BasicBlock.cpp +++ b/Source/BasicBlock.cpp @@ -62,13 +62,23 @@ unsigned int CBasicBlock::Execute() __asm { - pusha + push ebx + push ecx + push edx + push esi + push edi + push ebp mov eax, function mov ebp, context call eax - popa + pop ebp + pop edi + pop esi + pop edx + pop ecx + pop ebx } // asm("pushl %%ebx\n\t"