/[pcsx2_0.9.7]/trunk/tools/GSDumpGUI/Library/GSDump/GSData/GIFPacket/GIFReg/GIFRegFOG.cs
ViewVC logotype

Annotation of /trunk/tools/GSDumpGUI/Library/GSDump/GSData/GIFPacket/GIFReg/GIFRegFOG.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (hide annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (9 years, 7 months ago) by william
File size: 921 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1 william 313 using System;
2     using System.Collections.Generic;
3     using System.Text;
4    
5     namespace GSDumpGUI
6     {
7 william 401 [Serializable]
8 william 313 public class GIFRegFOG : GIFReg
9     {
10     public double F;
11    
12 william 401 public GIFRegFOG(byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat) : base(addr, LowData, HighData, PackedFormat) { }
13 william 313
14 william 401 static public GIFReg Unpack(GIFTag tag, byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
15 william 313 {
16     GIFRegFOG u = new GIFRegFOG(addr, LowData, HighData, PackedFormat);
17     u.Descriptor = (GIFRegDescriptor)addr;
18     if (PackedFormat)
19     u.F = (UInt16)(GetBit(HighData, 36, 8));
20     else
21     u.F = GetBit(LowData, 56, 8);
22     return u;
23     }
24    
25     public override string ToString()
26     {
27     return Descriptor.ToString() + "@F : " + F.ToString();
28     }
29     }
30     }

  ViewVC Help
Powered by ViewVC 1.1.22