/[pcsx2_0.9.7]/trunk/pcsx2/COP2.cpp
ViewVC logotype

Annotation of /trunk/pcsx2/COP2.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (9 years, 5 months ago) by william
File size: 1617 byte(s)
committing r3113 initial commit again...
1 william 31 /* PCSX2 - PS2 Emulator for PCs
2     * Copyright (C) 2002-2010 PCSX2 Dev Team
3     *
4     * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5     * of the GNU Lesser General Public License as published by the Free Software Found-
6     * ation, either version 3 of the License, or (at your option) any later version.
7     *
8     * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9     * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10     * PURPOSE. See the GNU General Public License for more details.
11     *
12     * You should have received a copy of the GNU General Public License along with PCSX2.
13     * If not, see <http://www.gnu.org/licenses/>.
14     */
15    
16    
17     #include "PrecompiledHeader.h"
18     #include "Common.h"
19    
20     #include "R5900OpcodeTables.h"
21     #include "VUmicro.h"
22    
23     using namespace R5900;
24     using namespace R5900::Interpreter;
25    
26     #define CP2COND (((VU0.VI[REG_VPU_STAT].US[0] >> 8) & 1))
27    
28     void VCALLMS() {
29     vu0Finish();
30     vu0ExecMicro(((cpuRegs.code >> 6) & 0x7FFF) * 8);
31     }
32    
33     void VCALLMSR() {
34     vu0Finish();
35     vu0ExecMicro(VU0.VI[REG_CMSAR0].US[0] * 8);
36     }
37    
38     void BC2F()
39     {
40     if (CP2COND == 0)
41     {
42     Console.WriteLn("VU0 Macro Branch");
43     intDoBranch(_BranchTarget_);
44     }
45     }
46     void BC2T()
47     {
48     if (CP2COND == 1)
49     {
50     Console.WriteLn("VU0 Macro Branch");
51     intDoBranch(_BranchTarget_);
52     }
53     }
54    
55     void BC2FL()
56     {
57     if (CP2COND == 0)
58     {
59     Console.WriteLn("VU0 Macro Branch");
60     intDoBranch(_BranchTarget_);
61     }
62     else
63     {
64     cpuRegs.pc+= 4;
65     }
66     }
67     void BC2TL()
68     {
69     if (CP2COND == 1)
70     {
71     Console.WriteLn("VU0 Macro Branch");
72     intDoBranch(_BranchTarget_);
73     }
74     else
75     {
76     cpuRegs.pc+= 4;
77     }
78     }

  ViewVC Help
Powered by ViewVC 1.1.22