static void I386OP(mov_r32_cr)(i386_state *cpustate) // Opcode 0x0f 20
{
-#if 0
+#if 1
UINT32 oldpc = cpustate->pc;
UINT8 modrm = FETCH(cpustate);
//if(modrm < 0xc0) {
static void I386OP(mov_cr_r32)(i386_state *cpustate) // Opcode 0x0f 22
{
-#if 0
+#if 1
UINT32 oldpc = cpustate->pc;
UINT8 modrm = FETCH(cpustate);
if(modrm < 0xc0) {
if(offset < size) size = offset;
if(/*(cpustate->sreg[seg].limit != 0) && */(((offset - size) <= cpustate->sreg[seg].limit) || ((cpustate->sreg[seg].d)?0:((offset + size - 1) > 0xffff))))
{
- logerror("Limit check at 0x%08x failed. Segment %04x, limit %08x, offset %08x (expand-down)\n",cpustate->pc,cpustate->sreg[seg].selector,cpustate->sreg[seg].limit,offset);
+ logerror("Limit check at 0x%08x failed. Segment %04x, limit %08x, offset %08x (expand-down)\n",cpustate->prev_pc,cpustate->sreg[seg].selector,cpustate->sreg[seg].limit,offset);
return 1;
}
}
{
if(((offset + size - 1) > cpustate->sreg[seg].limit) /*&& (cpustate->sreg[seg].limit != 0)*/)
{
- logerror("Limit check at 0x%08x failed. Segment %04x, limit %08x, offset %08x\n",cpustate->pc,cpustate->sreg[seg].selector,cpustate->sreg[seg].limit,offset);
+ logerror("Limit check at 0x%08x failed. Segment %04x, limit %08x, offset %08x\n",cpustate->prev_pc,cpustate->sreg[seg].selector,cpustate->sreg[seg].limit,offset);
return 1;
}
}