|
|
| version 1.2, 2003/11/08 17:06:01 | version 1.4, 2003/12/10 15:25:29 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "strres.h" | #include "strres.h" |
| #include "taskmng.h" | #include "taskmng.h" |
| #include "i286.h" | #include "cpucore.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| // #include "hostdrv.h" | // #include "hostdrv.h" |
| Line 64 static void np2sysp_cpu(const void *arg1 | Line 64 static void np2sysp_cpu(const void *arg1 |
| // CPUを返す | // CPUを返す |
| #if 1 // 80286 or V30 | #if 1 // 80286 or V30 |
| if (!(CPUTYPE & CPUTYPE_V30)) { | if (!(CPU_TYPE & CPUTYPE_V30)) { |
| np2sysp_outstr(str_80286, NULL); | np2sysp_outstr(str_80286, NULL); |
| } | } |
| else { | else { |
| Line 121 static const char str_np2[] = "NP2"; | Line 121 static const char str_np2[] = "NP2"; |
| static const char str_ver[] = "ver"; | static const char str_ver[] = "ver"; |
| static const char str_poweroff[] = "poweroff"; | static const char str_poweroff[] = "poweroff"; |
| static const char str_credit[] = "credit"; | static const char str_credit[] = "credit"; |
| static const char str_cpu[] = "credit"; | static const char str_cpu[] = "cpu"; |
| static const char str_clock[] = "clock"; | static const char str_clock[] = "clock"; |
| static const char str_multiple[] = "multiple"; | static const char str_multiple[] = "multiple"; |
| Line 190 static BOOL np2syspcmp(const char *p) { | Line 190 static BOOL np2syspcmp(const char *p) { |
| return(FALSE); | return(FALSE); |
| } | } |
| static void IOOUTCALL np2sysp_o7ef(UINT port, BYTE dat) { | static void IOOUTCALL np2sysp_o7ef(UINT port, REG8 dat) { |
| UINT i; | const SYSPCMD *cmd; |
| const SYSPCMD *cmdterm; | |
| np2sysp.substr[np2sysp.strpos] = dat; | np2sysp.substr[np2sysp.strpos] = (char)dat; |
| for (i=0; i<(sizeof(np2spcmd)/sizeof(SYSPCMD)); i++) { | cmd = np2spcmd; |
| if (!np2syspcmp(np2spcmd[i].key)) { | cmdterm = cmd + (sizeof(np2spcmd) / sizeof(SYSPCMD)); |
| np2spcmd[i].func(np2spcmd[i].arg1, np2spcmd[i].arg2); | while(cmd < cmdterm) { |
| if (!np2syspcmp(cmd->key)) { | |
| cmd->func(cmd->arg1, cmd->arg2); | |
| break; | break; |
| } | } |
| cmd++; | |
| } | } |
| np2sysp.strpos++; | np2sysp.strpos++; |
| np2sysp.strpos &= NP2SYSP_MASK; | np2sysp.strpos &= NP2SYSP_MASK; |
| (void)port; | (void)port; |
| } | } |
| static BYTE IOINPCALL np2sysp_i7ef(UINT port) { | static REG8 IOINPCALL np2sysp_i7ef(UINT port) { |
| BYTE ret; | REG8 ret; |
| ret = np2sysp.outstr[np2sysp.outpos]; | ret = (UINT8)np2sysp.outstr[np2sysp.outpos]; |
| if (ret) { | if (ret) { |
| np2sysp.outpos++; | np2sysp.outpos++; |
| np2sysp.outpos &= NP2SYSP_MASK; | np2sysp.outpos &= NP2SYSP_MASK; |