cyclone_debug improvements

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@182 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-07-05 20:28:32 +00:00
parent 03c5768cb5
commit aa15fda82c
4 changed files with 111 additions and 70 deletions

View file

@ -8701,6 +8701,7 @@ M68KMAKE_OP(rol, 32, r, .)
*r_dst = res;
FLAG_C = (src >> (32 - shift)) << 8;
if (shift == 0) FLAG_C = src << 8; // notaz
FLAG_N = NFLAG_32(res);
FLAG_Z = res;
FLAG_V = VFLAG_CLEAR;

View file

@ -1955,7 +1955,10 @@ void m68ki_exception_interrupt(uint int_level)
/* If we are halted, don't do anything */
if(CPU_STOPPED)
{
printf("mu stopped! (%x)\n", CPU_STOPPED);
return;
}
/* Acknowledge the interrupt */
vector = m68ki_int_ack(int_level);
@ -2012,6 +2015,7 @@ void m68ki_exception_interrupt(uint int_level)
/* ASG: Check for interrupts */
INLINE void m68ki_check_interrupts(void)
{
//printf("mu level, mask: %04x %04x\n", CPU_INT_LEVEL, FLAG_INT_MASK);
if(CPU_INT_LEVEL > FLAG_INT_MASK)
m68ki_exception_interrupt(CPU_INT_LEVEL>>8);
}

View file

@ -3181,6 +3181,7 @@ void m68k_op_rol_32_r(void)
*r_dst = res;
FLAG_C = (src >> (32 - shift)) << 8;
if (shift == 0) FLAG_C = src << 8; // notaz
FLAG_N = NFLAG_32(res);
FLAG_Z = res;
FLAG_V = VFLAG_CLEAR;