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