1.31 release

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@80 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-03-25 22:21:21 +00:00
parent 782f8f2211
commit c008977e8e
12 changed files with 160 additions and 50 deletions

View file

@ -632,7 +632,7 @@ int OpAsrEa(int op)
return 0;
}
int OpTas(int op)
int OpTas(int op, int gen_special)
{
int ea=0;
int use=0;
@ -645,7 +645,11 @@ int OpTas(int op)
use=OpBase(op);
if (op!=use) { OpUse(op,use); return 0; } // Use existing handler
OpStart(op); Cycles=4;
if (!gen_special) OpStart(op);
else
ot("Op%.4x_%s\n", op, ms?"":":");
Cycles=4;
if(ea>=8) Cycles+=10;
EaCalc (10,0x003f,ea,0,1);
@ -657,7 +661,7 @@ int OpTas(int op)
#if CYCLONE_FOR_GENESIS
// the original Sega hardware ignores write-back phase (to memory only)
if (ea < 0x10) {
if (ea < 0x10 || gen_special) {
#endif
ot(" orr r1,r1,#0x80000000 ;@ set bit7\n");
@ -667,6 +671,13 @@ int OpTas(int op)
#endif
OpEnd();
#if CYCLONE_FOR_GENESIS
if (!gen_special && ea >= 0x10) {
OpTas(op, 1);
}
#endif
return 0;
}