mirror of https://github.com/PCSX2/pcsx2.git
110 lines
3.2 KiB
C#
110 lines
3.2 KiB
C#
/*
|
|
* Copyright (C) 2009-2011 Ferreri Alessio
|
|
* Copyright (C) 2009-2018 PCSX2 Dev Team
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
* THE SOFTWARE.
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace GSDumpGUI
|
|
{
|
|
[Serializable]
|
|
abstract public class GIFReg : GIFUtil, IGifData
|
|
{
|
|
public GIFRegDescriptor Descriptor;
|
|
public UInt64 LowData, HighData;
|
|
public bool PackedFormat;
|
|
|
|
private GIFReg() { }
|
|
|
|
public GIFReg(byte addr, UInt64 LowData, UInt64 HighData, bool PackedFormat)
|
|
{
|
|
this.LowData = LowData;
|
|
this.HighData = HighData;
|
|
this.PackedFormat = PackedFormat;
|
|
}
|
|
|
|
abstract public new String ToString();
|
|
}
|
|
|
|
public enum GIFRegDescriptor
|
|
{
|
|
PRIM = 0x00,
|
|
RGBAQ = 0x01,
|
|
ST = 0x02,
|
|
UV = 0x03,
|
|
XYZF2 = 0x04,
|
|
XYZ2 = 0x05,
|
|
TEX0_1 = 0x06,
|
|
TEX0_2 = 0x07,
|
|
CLAMP_1 = 0x08,
|
|
CLAMP_2 = 0x09,
|
|
FOG = 0x0a,
|
|
XYZF3 = 0x0c,
|
|
XYZ3 = 0x0d,
|
|
AD = 0x0e,
|
|
NOP = 0x0f, // actually, 0xf is the standard GIF NOP and 0x7f is the standard GS NOP, but all unregistered addresses act as NOPs... probably
|
|
TEX1_1 = 0x14,
|
|
TEX1_2 = 0x15,
|
|
TEX2_1 = 0x16,
|
|
TEX2_2 = 0x17,
|
|
XYOFFSET_1 = 0x18,
|
|
XYOFFSET_2 = 0x19,
|
|
PRMODECONT = 0x1a,
|
|
PRMODE = 0x1b,
|
|
TEXCLUT = 0x1c,
|
|
SCANMSK = 0x22,
|
|
MIPTBP1_1 = 0x34,
|
|
MIPTBP1_2 = 0x35,
|
|
MIPTBP2_1 = 0x36,
|
|
MIPTBP2_2 = 0x37,
|
|
TEXA = 0x3b,
|
|
FOGCOL = 0x3d,
|
|
TEXFLUSH = 0x3f,
|
|
SCISSOR_1 = 0x40,
|
|
SCISSOR_2 = 0x41,
|
|
ALPHA_1 = 0x42,
|
|
ALPHA_2 = 0x43,
|
|
DIMX = 0x44,
|
|
DTHE = 0x45,
|
|
COLCLAMP = 0x46,
|
|
TEST_1 = 0x47,
|
|
TEST_2 = 0x48,
|
|
PABE = 0x49,
|
|
FBA_1 = 0x4a,
|
|
FBA_2 = 0x4b,
|
|
FRAME_1 = 0x4c,
|
|
FRAME_2 = 0x4d,
|
|
ZBUF_1 = 0x4e,
|
|
ZBUF_2 = 0x4f,
|
|
BITBLTBUF = 0x50,
|
|
TRXPOS = 0x51,
|
|
TRXREG = 0x52,
|
|
TRXDIR = 0x53,
|
|
HWREG = 0x54,
|
|
SIGNAL = 0x60,
|
|
FINISH = 0x61,
|
|
LABEL = 0x62,
|
|
}
|
|
|
|
}
|