mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-15 17:51:16 +01:00
35 lines
719 B
C#
35 lines
719 B
C#
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace ChocolArm64.Decoders
|
||
|
{
|
||
|
class Block
|
||
|
{
|
||
|
public long Position { get; set; }
|
||
|
public long EndPosition { get; set; }
|
||
|
|
||
|
public Block Next { get; set; }
|
||
|
public Block Branch { get; set; }
|
||
|
|
||
|
public List<OpCode64> OpCodes { get; private set; }
|
||
|
|
||
|
public Block()
|
||
|
{
|
||
|
OpCodes = new List<OpCode64>();
|
||
|
}
|
||
|
|
||
|
public Block(long position) : this()
|
||
|
{
|
||
|
Position = position;
|
||
|
}
|
||
|
|
||
|
public OpCode64 GetLastOp()
|
||
|
{
|
||
|
if (OpCodes.Count > 0)
|
||
|
{
|
||
|
return OpCodes[OpCodes.Count - 1];
|
||
|
}
|
||
|
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|