|
|
| version 1.2, 2004/01/27 15:53:56 | version 1.5, 2004/03/23 15:29:34 |
|---|---|
| Line 34 | Line 34 |
| extern "C" { | extern "C" { |
| #endif | #endif |
| DWORD (*calc_ea_dst_tbl[0x100])(void); | |
| DWORD (*calc_ea32_dst_tbl[0x100])(void); | |
| void resolve_init(void); | void resolve_init(void); |
| #if defined(DEBUG) || !defined(IA32_INLINE_CALC_EA) | INLINE static UINT32 |
| DWORD calc_ea_dst(DWORD); | calc_ea_dst(UINT32 op) |
| #else | |
| INLINE static DWORD | |
| calc_ea_dst(DWORD op) | |
| { | { |
| extern UINT32 (*calc_ea_dst_tbl[0x100])(void); | |
| extern UINT32 (*calc_ea32_dst_tbl[0x100])(void); | |
| __ASSERT(op < 0x100); | __ASSERT(op < 0x100); |
| Line 52 calc_ea_dst(DWORD op) | Line 48 calc_ea_dst(DWORD op) |
| return ((*calc_ea_dst_tbl[op])() & 0xffff); | return ((*calc_ea_dst_tbl[op])() & 0xffff); |
| return (*calc_ea32_dst_tbl[op])(); | return (*calc_ea32_dst_tbl[op])(); |
| } | } |
| #endif | |
| #define calc_lea(op) calc_ea_dst(op) | |
| #define get_ea(op) calc_ea_dst(op) | |
| #define get_lea(op) calc_ea_dst(op) | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |