| 1 | /****************************************************************************** |
| 2 | * Arachnoid Graphics Plugin for Mupen64Plus |
| 3 | * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/ |
| 4 | * |
| 5 | * Copyright (C) 2007 Kristofer Karlsson, Rickard Niklasson |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * as published by the Free Software Foundation; either version 2 |
| 10 | * of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20 | *****************************************************************************/ |
| 21 | |
| 22 | #ifndef UCODE_7_H_ |
| 23 | #define UCODE_7_H_ |
| 24 | |
| 25 | //Includes |
| 26 | #include "UCodeDefs.h" |
| 27 | |
| 28 | //Forward declaration |
| 29 | class GBI; |
| 30 | class RSP; |
| 31 | |
| 32 | //***************************************************************************** |
| 33 | //! UCode4 (aka S2DEX) |
| 34 | //! Microcode used for Yoshi's Story |
| 35 | //***************************************************************************** |
| 36 | class UCode7 |
| 37 | { |
| 38 | public: |
| 39 | |
| 40 | UCode7(); |
| 41 | ~UCode7(); |
| 42 | |
| 43 | static void initialize(RSP* rsp); |
| 44 | static void initializeGBI(GBI* gbi); |
| 45 | |
| 46 | static void S2DEX_Select_DL(MicrocodeArgument* ucode); |
| 47 | static void S2DEX_BG_1Cyc(MicrocodeArgument* ucode); |
| 48 | static void S2DEX_BG_Copy(MicrocodeArgument* ucode); |
| 49 | static void S2DEX_Obj_Rectangle(MicrocodeArgument* ucode); |
| 50 | static void S2DEX_Obj_Sprite(MicrocodeArgument* ucode); |
| 51 | static void S2DEX_Obj_MoveMem(MicrocodeArgument* ucode); |
| 52 | static void S2DEX_Obj_RenderMode(MicrocodeArgument* ucode); |
| 53 | static void S2DEX_Obj_Rectangle_R(MicrocodeArgument* ucode); |
| 54 | static void S2DEX_Obj_LoadTxtr(MicrocodeArgument* ucode); |
| 55 | static void S2DEX_Obj_LdTx_Sprite(MicrocodeArgument* ucode); |
| 56 | static void S2DEX_Obj_LdTx_Rect(MicrocodeArgument* ucode); |
| 57 | static void S2DEX_Obj_LdTx_Rect_R(MicrocodeArgument* ucode); |
| 58 | |
| 59 | private: |
| 60 | |
| 61 | static RSP* m_rsp; //!< Pointer to Reality Signal Processor |
| 62 | |
| 63 | }; |
| 64 | |
| 65 | #endif |