|
|
| version 1.8, 2004/01/07 06:53:48 | version 1.11, 2004/01/13 05:30:58 |
|---|---|
| Line 6 | Line 6 |
| #include "iocore.h" | #include "iocore.h" |
| #include "bios.h" | #include "bios.h" |
| #include "sxsi.h" | #include "sxsi.h" |
| // #include "hostdrv.h" | #if defined(SUPPORT_HOSTDRV) |
| #include "hostdrv.h" | |
| #endif | |
| #define NP2SYSP_VER "C" | #define NP2SYSP_VER "B" |
| // #define NP2SYSP_CREDIT "" // 要るなら・・・ | // #define NP2SYSP_CREDIT "" // 要るなら・・・ |
| // NP2依存ポート | // NP2依存ポート |
| Line 77 static void cmd_cpu(const void *arg1, lo | Line 79 static void cmd_cpu(const void *arg1, lo |
| static void cmd_clock(const void *arg1, long arg2) { | static void cmd_clock(const void *arg1, long arg2) { |
| SPRINTF(np2sysp.outstr, str_mhz, (pc.realclock + 500000) / 1000000); | SPRINTF(np2sysp.outstr, str_mhz, (pccore.realclock + 500000) / 1000000); |
| np2sysp.outpos = 0; | np2sysp.outpos = 0; |
| (void)arg1; | (void)arg1; |
| (void)arg2; | (void)arg2; |
| Line 85 static void cmd_clock(const void *arg1, | Line 87 static void cmd_clock(const void *arg1, |
| static void cmd_multiple(const void *arg1, long arg2) { | static void cmd_multiple(const void *arg1, long arg2) { |
| SPRINTF(np2sysp.outstr, str_u, pc.multiple); | SPRINTF(np2sysp.outstr, str_u, pccore.multiple); |
| np2sysp.outpos = 0; | np2sysp.outpos = 0; |
| (void)arg1; | (void)arg1; |
| (void)arg2; | (void)arg2; |
| Line 163 static void cmd_sxsibios(const void *arg | Line 165 static void cmd_sxsibios(const void *arg |
| CPU_BP = org_bp; | CPU_BP = org_bp; |
| CPU_ES = org_es; | CPU_ES = org_es; |
| ES_BASE = org_esbase; | ES_BASE = org_esbase; |
| (void)arg1; | |
| (void)arg2; | |
| } | } |
| #if 0 | #if defined(SUPPORT_HOSTDRV) |
| // ---- hostdrv | // ---- hostdrv |
| enum { | enum { |
| Line 195 static void cmd_hostdrv(const void *arg1 | Line 200 static void cmd_hostdrv(const void *arg1 |
| hostdrv_intr(); | hostdrv_intr(); |
| break; | break; |
| } | } |
| (void)arg1; | |
| } | } |
| #endif | #endif |
| Line 241 static const SYSPCMD np2spcmd[] = { | Line 247 static const SYSPCMD np2spcmd[] = { |
| {str_clock, cmd_clock, NULL, 0}, | {str_clock, cmd_clock, NULL, 0}, |
| {str_multiple, cmd_multiple, NULL, 0}, | {str_multiple, cmd_multiple, NULL, 0}, |
| // version:C | |
| {str_sxsibios, cmd_sxsibios, NULL, 0}, | |
| #if 0 | |
| // extension | // extension |
| {str_sxsibios, cmd_sxsibios, NULL, 0}, | |
| #if defined(SUPPORT_HOSTDRV) | |
| {str_hdrvcheck, cmd_outstr, "supported", 0}, | {str_hdrvcheck, cmd_outstr, "supported", 0}, |
| {str_hdrvopen, cmd_hostdrv, NULL, OPEN_HOSTDRV}, | {str_hdrvopen, cmd_hostdrv, NULL, OPEN_HOSTDRV}, |
| {str_hdrvclose, cmd_hostdrv, NULL, CLOSE_HOSTDRV}, | {str_hdrvclose, cmd_hostdrv, NULL, CLOSE_HOSTDRV}, |
| Line 277 static BOOL np2syspcmp(const char *p) { | Line 282 static BOOL np2syspcmp(const char *p) { |
| static void IOOUTCALL np2sysp_o7ed(UINT port, REG8 dat) { | static void IOOUTCALL np2sysp_o7ed(UINT port, REG8 dat) { |
| np2sysp.outval = (dat << 24) + (np2sysp.outval >> 8); | np2sysp.outval = (dat << 24) + (np2sysp.outval >> 8); |
| (void)port; | |
| } | } |
| static void IOOUTCALL np2sysp_o7ef(UINT port, REG8 dat) { | static void IOOUTCALL np2sysp_o7ef(UINT port, REG8 dat) { |
| Line 305 static REG8 IOINPCALL np2sysp_i7ed(UINT | Line 311 static REG8 IOINPCALL np2sysp_i7ed(UINT |
| ret = (REG8)(np2sysp.inpval & 0xff); | ret = (REG8)(np2sysp.inpval & 0xff); |
| np2sysp.inpval = (ret << 24) + (np2sysp.inpval >> 8); | np2sysp.inpval = (ret << 24) + (np2sysp.inpval >> 8); |
| (void)port; | |
| return(ret); | return(ret); |
| } | } |