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

Contents of /trunk/tools/GSDumpGUI/Library/GSDump/GSData/GIFPacket/GIFReg/GIFReg.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: 2293 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 abstract public class GIFReg : IGifData
8 {
9 public GIFRegDescriptor Descriptor;
10 public UInt64 LowData, HighData;
11 public bool PackedFormat;
12
13 private GIFReg() { }
14
15 public GIFReg(int addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
16 {
17 this.LowData = LowData;
18 this.HighData = HighData;
19 this.PackedFormat = PackedFormat;
20 }
21
22 static public UInt64 GetBit(UInt64 value, byte lower, byte count)
23 {
24 return (value >> lower) & (ulong)((1 << count) - 1);
25 }
26
27 abstract public new String ToString();
28 }
29
30 public enum GIFRegDescriptor
31 {
32 PRIM = 0x00,
33 RGBAQ = 0x01,
34 ST = 0x02,
35 UV = 0x03,
36 XYZF2 = 0x04,
37 XYZ2 = 0x05,
38 TEX0_1 = 0x06,
39 TEX0_2 = 0x07,
40 CLAMP_1 = 0x08,
41 CLAMP_2 = 0x09,
42 FOG = 0x0a,
43 XYZF3 = 0x0c,
44 XYZ3 = 0x0d,
45 AD = 0x0e,
46 NOP = 0x0f, // actually, 0xf is the standard GIF NOP and 0x7f is the standard GS NOP, but all unregistered addresses act as NOPs... probably
47 TEX1_1 = 0x14,
48 TEX1_2 = 0x15,
49 TEX2_1 = 0x16,
50 TEX2_2 = 0x17,
51 XYOFFSET_1 = 0x18,
52 XYOFFSET_2 = 0x19,
53 PRMODECONT = 0x1a,
54 PRMODE = 0x1b,
55 TEXCLUT = 0x1c,
56 SCANMSK = 0x22,
57 MIPTBP1_1 = 0x34,
58 MIPTBP1_2 = 0x35,
59 MIPTBP2_1 = 0x36,
60 MIPTBP2_2 = 0x37,
61 TEXA = 0x3b,
62 FOGCOL = 0x3d,
63 TEXFLUSH = 0x3f,
64 SCISSOR_1 = 0x40,
65 SCISSOR_2 = 0x41,
66 ALPHA_1 = 0x42,
67 ALPHA_2 = 0x43,
68 DIMX = 0x44,
69 DTHE = 0x45,
70 COLCLAMP = 0x46,
71 TEST_1 = 0x47,
72 TEST_2 = 0x48,
73 PABE = 0x49,
74 FBA_1 = 0x4a,
75 FBA_2 = 0x4b,
76 FRAME_1 = 0x4c,
77 FRAME_2 = 0x4d,
78 ZBUF_1 = 0x4e,
79 ZBUF_2 = 0x4f,
80 BITBLTBUF = 0x50,
81 TRXPOS = 0x51,
82 TRXREG = 0x52,
83 TRXDIR = 0x53,
84 HWREG = 0x54,
85 SIGNAL = 0x60,
86 FINISH = 0x61,
87 LABEL = 0x62,
88 }
89
90 }

  ViewVC Help
Powered by ViewVC 1.1.22