mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
Compiler fixes. Updated project.json files. Removed *.lock.json files and updated gitignore to ignore them. Updated some Cosmos.Debug projects.
21 lines
830 B
C#
21 lines
830 B
C#
using CPUx86 = Cosmos.Assembler.x86;
|
|
using XSharp.Compiler;
|
|
using static XSharp.Compiler.XSRegisters;
|
|
|
|
namespace Cosmos.IL2CPU.X86.IL
|
|
{
|
|
[OpCode(ILOpCode.Code.Endfinally)]
|
|
public class Endfinally : ILOp
|
|
{
|
|
public Endfinally(Cosmos.Assembler.Assembler aAsmblr) : base(aAsmblr)
|
|
{
|
|
}
|
|
|
|
public override void Execute(MethodInfo aMethod, ILOpCode aOpCode)
|
|
{
|
|
XS.DataMember(aMethod.MethodBase.GetFullName() + "_" + "LeaveAddress_" + aOpCode.CurrentExceptionRegion.Value.HandlerOffset.ToString("X2"), 0);
|
|
XS.Set(EAX, aMethod.MethodBase.GetFullName() + "_" + "LeaveAddress_" + aOpCode.CurrentExceptionRegion.Value.HandlerOffset.ToString("X2"));
|
|
new CPUx86.Jump { DestinationReg = EAX, DestinationIsIndirect = true };
|
|
}
|
|
}
|
|
}
|