BeginConditionalBlock.cs 501 B

1234567891011121314
  1. namespace Ryujinx.HLE.HOS.Tamper.CodeEmitters
  2. {
  3. /// <summary>
  4. /// Marks the begin of a conditional block (started by Code Type 1, Code Type 8 or Code Type C0).
  5. /// </summary>
  6. class BeginConditionalBlock
  7. {
  8. public static void Emit(byte[] instruction, CompilationContext context)
  9. {
  10. // Just start a new compilation block and parse the instruction itself at the end.
  11. context.BlockStack.Push(new OperationBlock(instruction));
  12. }
  13. }
  14. }