mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-10 10:11:31 +00:00
pop complete size of last stack item
This commit is contained in:
parent
c66d8bca19
commit
3ca8a96472
1 changed files with 2 additions and 4 deletions
|
|
@ -15,10 +15,8 @@ namespace Cosmos.IL2CPU.X86.IL
|
|||
{
|
||||
// todo: implement exception support.
|
||||
if (Assembler.Stack.Count > 0) {
|
||||
new CPUx86.Pop {
|
||||
DestinationReg = CPUx86.Registers.EAX
|
||||
};
|
||||
Assembler.Stack.Pop();
|
||||
var xItem = Assembler.Stack.Pop();
|
||||
new CPUx86.Add { DestinationReg = CPUx86.Registers.ESP, SourceValue = (uint)xItem.Size };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue