mirror of https://github.com/PCSX2/pcsx2.git
19 lines
562 B
C#
19 lines
562 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace GSDumpGUI
|
|
{
|
|
[Serializable]
|
|
public static class GIFRegAD
|
|
{
|
|
static public GIFReg Unpack(GIFTag tag, byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
|
|
{
|
|
byte reg = (byte)GIFReg.GetBit(HighData, 0, 8);
|
|
if (reg == (byte)GIFRegDescriptor.AD)
|
|
return GIFRegNOP.Unpack(tag, reg, LowData, HighData, PackedFormat);
|
|
return GIFTag.GetUnpack(reg)(tag, reg, LowData, HighData, false);
|
|
}
|
|
}
|
|
}
|