mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 15:07:10 +02:00
aloha
This commit is contained in:
commit
b7e1d9930d
230 changed files with 17548 additions and 0 deletions
28
Ryujinx/Cpu/Translation/AILLabel.cs
Normal file
28
Ryujinx/Cpu/Translation/AILLabel.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System.Reflection.Emit;
|
||||
|
||||
namespace ChocolArm64.Translation
|
||||
{
|
||||
class AILLabel : IAILEmit
|
||||
{
|
||||
private bool HasLabel;
|
||||
|
||||
private Label Lbl;
|
||||
|
||||
public void Emit(AILEmitter Context)
|
||||
{
|
||||
Context.Generator.MarkLabel(GetLabel(Context));
|
||||
}
|
||||
|
||||
public Label GetLabel(AILEmitter Context)
|
||||
{
|
||||
if (!HasLabel)
|
||||
{
|
||||
Lbl = Context.Generator.DefineLabel();
|
||||
|
||||
HasLabel = true;
|
||||
}
|
||||
|
||||
return Lbl;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue