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-28 18:31:45 +00:00
|
|
|
|
public GIFRegFOG(byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat) : base(addr, LowData, HighData, PackedFormat) { }
|
2010-12-26 12:22:37 +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-25 17:18:13 +00:00
|
|
|
|
{
|
2010-12-26 12:22:37 +00:00
|
|
|
|
GIFRegFOG u = new GIFRegFOG(addr, LowData, HighData, PackedFormat);
|
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;
|
|
|
|
|
}
|
2010-12-26 12:22:37 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Descriptor.ToString() + "@F : " + F.ToString();
|
|
|
|
|
}
|
2010-12-25 17:18:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|