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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22