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