2010-12-25 17:18:13 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace GSDumpGUI
|
|
|
|
|
{
|
|
|
|
|
public class GIFRegST : GIFReg
|
|
|
|
|
{
|
|
|
|
|
public float S;
|
|
|
|
|
public float T;
|
|
|
|
|
public float Q;
|
|
|
|
|
|
|
|
|
|
static public GIFReg Unpack(UInt64 LowData, UInt64 HighData, bool PlainFormat)
|
|
|
|
|
{
|
|
|
|
|
unsafe
|
|
|
|
|
{
|
|
|
|
|
GIFRegST st = new GIFRegST();
|
|
|
|
|
st.Descriptor = GIFRegDescriptor.ST;
|
|
|
|
|
|
2010-12-25 20:08:25 +00:00
|
|
|
|
ulong pt = GIFReg.GetBit(LowData, 0, 32);
|
2010-12-25 17:18:13 +00:00
|
|
|
|
void* ptt = &pt;
|
|
|
|
|
st.S = *(float*)ptt;
|
|
|
|
|
|
2010-12-25 20:08:25 +00:00
|
|
|
|
pt = GIFReg.GetBit(LowData, 32, 32);
|
2010-12-25 17:18:13 +00:00
|
|
|
|
ptt = &pt;
|
|
|
|
|
st.T = *(float*)ptt;
|
|
|
|
|
|
2010-12-25 20:08:25 +00:00
|
|
|
|
pt = GIFReg.GetBit(HighData, 0, 32);
|
2010-12-25 17:18:13 +00:00
|
|
|
|
ptt = &pt;
|
|
|
|
|
st.Q = *(float*)ptt;
|
|
|
|
|
return st;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|