mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
20 lines
608 B
C#
20 lines
608 B
C#
using System;
|
|
using Cosmos.IL2CPU;
|
|
using Cosmos.IL2CPU.ILOpCodes;
|
|
using CPU = Indy.IL2CPU.Assembler.X86;
|
|
using System.Collections.Generic;
|
|
using StackContent = Indy.IL2CPU.Assembler.StackContent;
|
|
|
|
namespace Cosmos.IL2CPU.X86.IL {
|
|
[Cosmos.IL2CPU.OpCode(ILOpCode.Code.Ldc_I4)]
|
|
public class Ldc_I4: ILOp {
|
|
public Ldc_I4(Cosmos.IL2CPU.Assembler aAsmblr):base(aAsmblr) {}
|
|
|
|
public override void Execute(uint aMethodUID, ILOpCode aOpCode) {
|
|
new CPU.Push { DestinationValue = ((OpInt)aOpCode).Value };
|
|
OldAsmblr.StackContents.Push(new StackContent(4, typeof(int)));
|
|
}
|
|
|
|
}
|
|
}
|
|
|