|
|
| version 1.3, 2003/12/25 19:21:17 | version 1.16, 2004/03/29 05:50:29 |
|---|---|
| Line 30 | Line 30 |
| #ifndef IA32_CPU_INTERFACE_H__ | #ifndef IA32_CPU_INTERFACE_H__ |
| #define IA32_CPU_INTERFACE_H__ | #define IA32_CPU_INTERFACE_H__ |
| typedef signed char SBYTE; | #ifndef CPUCALL |
| typedef signed short SWORD; | #define CPUCALL |
| typedef signed int SDWORD; | #endif |
| typedef UINT64 QWORD; | #if !defined(QWORD_CONST) |
| typedef SINT64 SQWORD; | #define QWORD_CONST(v) v ## ULL |
| #define SQWORD_CONST(v) v ## LL | |
| #define CPU_isDI (!(CPU_FLAG & I_FLAG)) | #endif |
| #define CPU_isEI (CPU_FLAG & I_FLAG) | |
| #define CPU_isEI (CPU_FLAG & I_FLAG) | |
| #define CPU_INITIALIZE() i386c_initialize() | #define CPU_isDI (!CPU_isEI) |
| #define CPU_RESET() ia32reset() | #define CPU_A20EN(en) CPU_ADRSMASK = (en)?0xffffffff:0x000fffff; |
| #define CPU_CLEARPREFETCH() | |
| #define CPU_INTERRUPT(a) ia32_interrupt(a) | #define CPU_INITIALIZE() i386c_initialize() |
| #define CPU_EXEC() ia32() | #define CPU_DEINITIALIZE() |
| #define CPU_EXECV30() ia32() | #define CPU_RESET() ia32reset() |
| #define CPU_SHUT() ia32shut() | #define CPU_CLEARPREFETCH() CPU_PREFETCH_CLEAR() |
| #define CPU_INTERRUPT(vect, soft) ia32_interrupt(vect, soft) | |
| #define CPU_EXEC() ia32() | |
| #define CPU_EXECV30() ia32() | |
| #define CPU_SHUT() ia32shut() | |
| #define CPU_SETEXTSIZE(size) ia32_setextsize((UINT32)(size) << 20) | |
| #define CPU_SETEMM(frame, addr) ia32_setemm(frame, addr) | |
| #define cpu_memorywrite(a,v) i286_memorywrite(a,v) | |
| #define cpu_memorywrite_b(a,v) i286_memorywrite(a,v) | |
| #define cpu_memorywrite_w(a,v) i286_memorywrite_w(a,v) | |
| #define cpu_memorywrite_d(a,v) i286_memorywrite_d(a,v) | |
| #define cpu_memoryread(a) i286_memoryread(a) | |
| #define cpu_memoryread_b(a) i286_memoryread(a) | |
| #define cpu_memoryread_w(a) i286_memoryread_w(a) | |
| #define cpu_memoryread_d(a) i286_memoryread_d(a) | |
| void i386c_initialize(void); | #define cpu_memoryread_region(a,p,l) memp_read(a,p,l) |
| #define cpu_memorywrite_region(a,p,l) memp_write(a,p,l) | |
| void FASTCALL msgbox_str(char *msg); | void i386c_initialize(void); |
| void FASTCALL msgbox_mem(DWORD no); | |
| void put_cpuinfo(void); | |
| #endif /* IA32_CPU_INTERFACE_H__ */ | #endif /* IA32_CPU_INTERFACE_H__ */ |