apps,fceux,x6502: skip spin

This commit is contained in:
Zihao Yu 2020-02-05 01:34:15 +08:00
parent a27b40c09d
commit 51a4647d4e
1 changed files with 5 additions and 0 deletions

View File

@ -484,11 +484,16 @@ extern int test; test++;
_tcount=0;
if(MapIRQHook) MapIRQHook(temp);
uint32 lastPC = _PC;
_PC++;
switch(b1)
{
#include "ops.inc"
}
if (lastPC == _PC) {
// spinning, just finish the run
_count = 0;
}
}
}