|
|
| version 1.1, 2003/12/21 23:27:08 | version 1.6, 2003/12/25 20:30:22 |
|---|---|
| Line 2 | Line 2 |
| #include "cpucore.h" | #include "cpucore.h" |
| I286CORE i286core; | I286CORE i286acore; |
| const UINT8 iflags[512] = { // Z_FLAG, S_FLAG, P_FLAG | const UINT8 iflags[512] = { // Z_FLAG, S_FLAG, P_FLAG |
| 0x44, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04, 0x00, | 0x44, 0x00, 0x00, 0x04, 0x00, 0x04, 0x04, 0x00, |
| Line 76 const UINT8 iflags[512] = { // Z_FLA | Line 76 const UINT8 iflags[512] = { // Z_FLA |
| void i286a_reset(void) { | void i286a_reset(void) { |
| ZeroMemory(&CPU_STATSAVE, sizeof(CPU_STATSAVE)); | ZeroMemory(&CPU_STATSAVE, sizeof(CPU_STATSAVE)); |
| CPU_CS = 0x1fc0; | CPU_CS = 0xf000; |
| CS_BASE = 0x1fc00; | CS_BASE = 0xf0000; |
| CPU_IP = 0xfff0; | |
| CPU_ADRSMASK = 0xfffff; | CPU_ADRSMASK = 0xfffff; |
| } | } |
| void i286a_shut(void) { | |
| CPU_MSW = 0; | |
| CPU_ES = 0; | |
| CPU_CS = 0xf000; | |
| CPU_SS = 0; | |
| CPU_DS = 0; | |
| ES_BASE = 0; | |
| CS_BASE = 0xf0000; | |
| SS_BASE = 0; | |
| DS_BASE = 0; | |
| SS_FIX = 0; | |
| DS_FIX = 0; | |
| CPU_IP = 0xfff0; | |
| CPU_ADRSMASK = 0xfffff; | |
| } | |
| #if 0 // ---- test | |
| void ea_assert(UINT32 x) { | |
| TCHAR buf[32]; | |
| wsprintf(buf, _T("addr = %x [%.2x]"), x, i286_memoryread(x - 2)); | |
| MessageBox(NULL, buf, _T("!"), MB_OK); | |
| exit(1); | |
| } | |
| #endif | |