2010-12-26 01:00:11 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace GSDumpGUI
|
|
|
|
|
{
|
2010-12-29 08:41:15 +00:00
|
|
|
|
[Serializable]
|
2010-12-26 12:22:37 +00:00
|
|
|
|
public static class GIFRegAD
|
2010-12-26 01:00:11 +00:00
|
|
|
|
{
|
2010-12-28 18:31:45 +00:00
|
|
|
|
static public GIFReg Unpack(GIFTag tag, byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
|
2010-12-26 01:00:11 +00:00
|
|
|
|
{
|
2010-12-28 18:31:45 +00:00
|
|
|
|
byte reg = (byte)GIFReg.GetBit(HighData, 0, 8);
|
|
|
|
|
if (reg == (byte)GIFRegDescriptor.AD)
|
2010-12-26 01:00:11 +00:00
|
|
|
|
return GIFRegNOP.Unpack(tag, reg, LowData, HighData, PackedFormat);
|
2010-12-26 12:22:37 +00:00
|
|
|
|
return GIFTag.GetUnpack(reg)(tag, reg, LowData, HighData, false);
|
2010-12-26 01:00:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|