diff --git a/MdeModulePkg/Universal/EbcDxe/Ia32/EbcLowLevel.asm b/MdeModulePkg/Universal/EbcDxe/Ia32/EbcLowLevel.asm index b16fda69fa..d5e742399f 100644 --- a/MdeModulePkg/Universal/EbcDxe/Ia32/EbcLowLevel.asm +++ b/MdeModulePkg/Universal/EbcDxe/Ia32/EbcLowLevel.asm @@ -56,12 +56,12 @@ EbcLLCALLEXNative PROC PUBLIC ; Get function address in a register ; mov ecx, FuncAddr => mov ecx, dword ptr [FuncAddr] - mov ecx, dword ptr [esp]+0Ch + mov ecx, dword ptr [esp + 0Ch] ; Set stack pointer to new value ; mov eax, NewStackPointer => mov eax, dword ptr [NewSp] - mov eax, dword ptr [esp] + 14h - mov edx, dword ptr [esp] + 10h + mov eax, dword ptr [esp + 14h] + mov edx, dword ptr [esp + 10h] sub eax, edx sub esp, eax mov ebx, esp