--- np2/io/np2sysp.c 2004/01/07 06:53:48 1.8 +++ np2/io/np2sysp.c 2004/01/09 04:36:02 1.10 @@ -6,10 +6,12 @@ #include "iocore.h" #include "bios.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 "" // 要るなら・・・ // NP2依存ポート @@ -163,10 +165,13 @@ static void cmd_sxsibios(const void *arg CPU_BP = org_bp; CPU_ES = org_es; ES_BASE = org_esbase; + + (void)arg1; + (void)arg2; } -#if 0 +#if defined(SUPPORT_HOSTDRV) // ---- hostdrv enum { @@ -195,6 +200,7 @@ static void cmd_hostdrv(const void *arg1 hostdrv_intr(); break; } + (void)arg1; } #endif @@ -241,11 +247,10 @@ static const SYSPCMD np2spcmd[] = { {str_clock, cmd_clock, NULL, 0}, {str_multiple, cmd_multiple, NULL, 0}, -// version:C - {str_sxsibios, cmd_sxsibios, NULL, 0}, -#if 0 // extension + {str_sxsibios, cmd_sxsibios, NULL, 0}, +#if defined(SUPPORT_HOSTDRV) {str_hdrvcheck, cmd_outstr, "supported", 0}, {str_hdrvopen, cmd_hostdrv, NULL, OPEN_HOSTDRV}, {str_hdrvclose, cmd_hostdrv, NULL, CLOSE_HOSTDRV}, @@ -277,6 +282,7 @@ static BOOL np2syspcmp(const char *p) { static void IOOUTCALL np2sysp_o7ed(UINT port, REG8 dat) { np2sysp.outval = (dat << 24) + (np2sysp.outval >> 8); + (void)port; } static void IOOUTCALL np2sysp_o7ef(UINT port, REG8 dat) { @@ -305,6 +311,7 @@ static REG8 IOINPCALL np2sysp_i7ed(UINT ret = (REG8)(np2sysp.inpval & 0xff); np2sysp.inpval = (ret << 24) + (np2sysp.inpval >> 8); + (void)port; return(ret); }