2010-12-25 17:18:13 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace GSDumpGUI
|
|
|
|
|
{
|
|
|
|
|
public class GIFRegFOG : GIFReg
|
|
|
|
|
{
|
|
|
|
|
public double F;
|
|
|
|
|
|
2010-12-26 01:00:11 +00:00
|
|
|
|
static public GIFReg Unpack(GIFTag tag, int addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
|
2010-12-25 17:18:13 +00:00
|
|
|
|
{
|
|
|
|
|
GIFRegFOG u = new GIFRegFOG();
|
2010-12-26 01:00:11 +00:00
|
|
|
|
u.Descriptor = (GIFRegDescriptor)addr;
|
|
|
|
|
if (PackedFormat)
|
|
|
|
|
u.F = (UInt16)(GetBit(HighData, 36, 8));
|
|
|
|
|
else
|
|
|
|
|
u.F = GetBit(LowData, 56, 8);
|
2010-12-25 17:18:13 +00:00
|
|
|
|
return u;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|