Cycle counts for recompiled blocks now generated at compile time.

This commit is contained in:
TomW 2014-11-12 19:33:49 +00:00
commit 2905c43db8
43 changed files with 1142 additions and 730 deletions

View file

@ -7,7 +7,7 @@ static int op ## name ## _w_a16(uint32_t fetchdat) \
\
ea_seg = &seg; \
ssegs = 1; \
cycles -= 4; \
CLOCK_CYCLES(4); \
\
return x86_opcodes[fetchdat & 0xff](fetchdat >> 8); \
} \
@ -20,7 +20,7 @@ static int op ## name ## _l_a16(uint32_t fetchdat) \
\
ea_seg = &seg; \
ssegs = 1; \
cycles -= 4; \
CLOCK_CYCLES(4); \
\
return x86_opcodes[(fetchdat & 0xff) | 0x100](fetchdat >> 8); \
} \
@ -33,7 +33,7 @@ static int op ## name ## _w_a32(uint32_t fetchdat) \
\
ea_seg = &seg; \
ssegs = 1; \
cycles -= 4; \
CLOCK_CYCLES(4); \
\
return x86_opcodes[(fetchdat & 0xff) | 0x200](fetchdat >> 8); \
} \
@ -46,7 +46,7 @@ static int op ## name ## _l_a32(uint32_t fetchdat) \
\
ea_seg = &seg; \
ssegs = 1; \
cycles -= 4; \
CLOCK_CYCLES(4); \
\
return x86_opcodes[(fetchdat & 0xff) | 0x300](fetchdat >> 8); \
}
@ -65,7 +65,7 @@ static int op_66(uint32_t fetchdat) /*Data size select*/
pc++;
op32 = ((use32 & 0x100) ^ 0x100) | (op32 & 0x200);
cycles -= 2;
CLOCK_CYCLES(2);
return x86_opcodes[(fetchdat & 0xff) | op32](fetchdat >> 8);
}
static int op_67(uint32_t fetchdat) /*Address size select*/
@ -75,6 +75,6 @@ static int op_67(uint32_t fetchdat) /*Address size select*/
pc++;
op32 = ((use32 & 0x200) ^ 0x200) | (op32 & 0x100);
cycles -= 2;
CLOCK_CYCLES(2);
return x86_opcodes[(fetchdat & 0xff) | op32](fetchdat >> 8);
}