AILOpCodeBranch.cs 458 B

123456789101112131415161718192021
  1. using System.Reflection.Emit;
  2. namespace ChocolArm64.Translation
  3. {
  4. struct AILOpCodeBranch : IAILEmit
  5. {
  6. private OpCode ILOp;
  7. private AILLabel Label;
  8. public AILOpCodeBranch(OpCode ILOp, AILLabel Label)
  9. {
  10. this.ILOp = ILOp;
  11. this.Label = Label;
  12. }
  13. public void Emit(AILEmitter Context)
  14. {
  15. Context.Generator.Emit(ILOp, Label.GetLabel(Context));
  16. }
  17. }
  18. }