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 @@ static int opMOVZX_w_b_a16(uint32_t fetchdat)
|
|||
temp = geteab(); if (abrt) return 1;
|
||||
regs[reg].w = (uint16_t)temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_w_b_a32(uint32_t fetchdat)
|
||||
|
|
@ -17,7 +17,7 @@ static int opMOVZX_w_b_a32(uint32_t fetchdat)
|
|||
temp = geteab(); if (abrt) return 1;
|
||||
regs[reg].w = (uint16_t)temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_l_b_a16(uint32_t fetchdat)
|
||||
|
|
@ -28,7 +28,7 @@ static int opMOVZX_l_b_a16(uint32_t fetchdat)
|
|||
temp = geteab(); if (abrt) return 1;
|
||||
regs[reg].l = (uint32_t)temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_l_b_a32(uint32_t fetchdat)
|
||||
|
|
@ -39,7 +39,7 @@ static int opMOVZX_l_b_a32(uint32_t fetchdat)
|
|||
temp = geteab(); if (abrt) return 1;
|
||||
regs[reg].l = (uint32_t)temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_w_w_a16(uint32_t fetchdat)
|
||||
|
|
@ -50,7 +50,7 @@ static int opMOVZX_w_w_a16(uint32_t fetchdat)
|
|||
temp = geteaw(); if (abrt) return 1;
|
||||
regs[reg].w = temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_w_w_a32(uint32_t fetchdat)
|
||||
|
|
@ -61,7 +61,7 @@ static int opMOVZX_w_w_a32(uint32_t fetchdat)
|
|||
temp = geteaw(); if (abrt) return 1;
|
||||
regs[reg].w = temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_l_w_a16(uint32_t fetchdat)
|
||||
|
|
@ -72,7 +72,7 @@ static int opMOVZX_l_w_a16(uint32_t fetchdat)
|
|||
temp = geteaw(); if (abrt) return 1;
|
||||
regs[reg].l = (uint32_t)temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVZX_l_w_a32(uint32_t fetchdat)
|
||||
|
|
@ -83,7 +83,7 @@ static int opMOVZX_l_w_a32(uint32_t fetchdat)
|
|||
temp = geteaw(); if (abrt) return 1;
|
||||
regs[reg].l = (uint32_t)temp;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ static int opMOVSX_w_b_a16(uint32_t fetchdat)
|
|||
if (temp & 0x80)
|
||||
regs[reg].w |= 0xff00;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVSX_w_b_a32(uint32_t fetchdat)
|
||||
|
|
@ -110,7 +110,7 @@ static int opMOVSX_w_b_a32(uint32_t fetchdat)
|
|||
if (temp & 0x80)
|
||||
regs[reg].w |= 0xff00;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVSX_l_b_a16(uint32_t fetchdat)
|
||||
|
|
@ -123,7 +123,7 @@ static int opMOVSX_l_b_a16(uint32_t fetchdat)
|
|||
if (temp & 0x80)
|
||||
regs[reg].l |= 0xffffff00;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVSX_l_b_a32(uint32_t fetchdat)
|
||||
|
|
@ -136,7 +136,7 @@ static int opMOVSX_l_b_a32(uint32_t fetchdat)
|
|||
if (temp & 0x80)
|
||||
regs[reg].l |= 0xffffff00;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVSX_l_w_a16(uint32_t fetchdat)
|
||||
|
|
@ -149,7 +149,7 @@ static int opMOVSX_l_w_a16(uint32_t fetchdat)
|
|||
if (temp & 0x8000)
|
||||
regs[reg].l |= 0xffff0000;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
static int opMOVSX_l_w_a32(uint32_t fetchdat)
|
||||
|
|
@ -162,6 +162,6 @@ static int opMOVSX_l_w_a32(uint32_t fetchdat)
|
|||
if (temp & 0x8000)
|
||||
regs[reg].l |= 0xffff0000;
|
||||
|
||||
cycles -= 3;
|
||||
CLOCK_CYCLES(3);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue