improve debug build speed by 20% when not using cheats

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@200 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2007-12-15 11:21:33 +00:00
parent d6e7ebe472
commit 9e41f42420
3 changed files with 7 additions and 3 deletions

View File

@ -2867,7 +2867,9 @@ static void tester(void) {
int armExecute()
{
do {
cpuMasterCodeCheck();
if( cheatsEnabled ) {
cpuMasterCodeCheck();
}
if ((armNextPC & 0x0803FFFF) == 0x08020000)
busPrefetchCount = 0x100;

View File

@ -2295,7 +2295,9 @@ static insnfunc_t thumbInsnTable[1024] = {
int thumbExecute()
{
do {
cpuMasterCodeCheck();
if( cheatsEnabled ) {
cpuMasterCodeCheck();
}
//if ((armNextPC & 0x0803FFFF) == 0x08020000)
// busPrefetchCount=0x100;

View File

@ -289,7 +289,7 @@ inline int codeTicksAccessSeq32(u32 address) // ARM SEQ
// Emulates the Cheat System (m) code
inline void cpuMasterCodeCheck()
{
if((cheatsEnabled) && (mastercode) && (mastercode == armNextPC))
if((mastercode) && (mastercode == armNextPC))
{
u32 joy = 0;
if(systemReadJoypads())