Cycle counts for recompiled blocks now generated at compile time.
This commit is contained in:
parent
087f412d3f
commit
2905c43db8
43 changed files with 1142 additions and 730 deletions
|
|
@ -6,7 +6,7 @@
|
|||
flags &= ~Z_FLAG; \
|
||||
for (c = start; c != end; c += dir) \
|
||||
{ \
|
||||
cycles -= time; \
|
||||
CLOCK_CYCLES(time); \
|
||||
if (temp & (1 << c)) \
|
||||
{ \
|
||||
dest = c; \
|
||||
|
|
@ -26,7 +26,7 @@ static int opBSF_w_a16(uint32_t fetchdat)
|
|||
|
||||
BS_common(0, 16, 1, regs[reg].w, (is486) ? 1 : 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
static int opBSF_w_a32(uint32_t fetchdat)
|
||||
|
|
@ -38,7 +38,7 @@ static int opBSF_w_a32(uint32_t fetchdat)
|
|||
|
||||
BS_common(0, 16, 1, regs[reg].w, (is486) ? 1 : 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
static int opBSF_l_a16(uint32_t fetchdat)
|
||||
|
|
@ -50,7 +50,7 @@ static int opBSF_l_a16(uint32_t fetchdat)
|
|||
|
||||
BS_common(0, 32, 1, regs[reg].l, (is486) ? 1 : 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
static int opBSF_l_a32(uint32_t fetchdat)
|
||||
|
|
@ -62,7 +62,7 @@ static int opBSF_l_a32(uint32_t fetchdat)
|
|||
|
||||
BS_common(0, 32, 1, regs[reg].l, (is486) ? 1 : 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ static int opBSR_w_a16(uint32_t fetchdat)
|
|||
|
||||
BS_common(15, -1, -1, regs[reg].w, 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
static int opBSR_w_a32(uint32_t fetchdat)
|
||||
|
|
@ -87,7 +87,7 @@ static int opBSR_w_a32(uint32_t fetchdat)
|
|||
|
||||
BS_common(15, -1, -1, regs[reg].w, 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
static int opBSR_l_a16(uint32_t fetchdat)
|
||||
|
|
@ -99,7 +99,7 @@ static int opBSR_l_a16(uint32_t fetchdat)
|
|||
|
||||
BS_common(31, -1, -1, regs[reg].l, 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
static int opBSR_l_a32(uint32_t fetchdat)
|
||||
|
|
@ -111,7 +111,7 @@ static int opBSR_l_a32(uint32_t fetchdat)
|
|||
|
||||
BS_common(31, -1, -1, regs[reg].l, 3);
|
||||
|
||||
cycles -= (is486) ? 6 : 10;
|
||||
CLOCK_CYCLES((is486) ? 6 : 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue