|
|
| version 1.5, 2003/12/28 14:33:34 | version 1.7, 2004/01/05 12:54:56 |
|---|---|
| Line 18 | Line 18 |
| #define CLOSE_HOSTDRV 2 | #define CLOSE_HOSTDRV 2 |
| // NP2依存ポート | // NP2依存ポート |
| // port:07edh reserved | // port:07edh np2 value comm |
| // port:07efh np2 string comm | // port:07efh np2 string comm |
| // 基本的に STRINGでやり取りする | // 基本的に STRINGでやり取りする |
| Line 113 static void np2sysp_sxsi(const void *arg | Line 113 static void np2sysp_sxsi(const void *arg |
| UINT8 ret; | UINT8 ret; |
| REG8 flag; | REG8 flag; |
| TRACEOUT(("np2sysp_sxsi")); | |
| org.r_ax = CPU_AX; | org.r_ax = CPU_AX; |
| org.r_cx = CPU_CX; | org.r_cx = CPU_CX; |
| org.r_dx = CPU_DX; | org.r_dx = CPU_DX; |
| Line 264 static BOOL np2syspcmp(const char *p) { | Line 266 static BOOL np2syspcmp(const char *p) { |
| return(FALSE); | return(FALSE); |
| } | } |
| static void IOOUTCALL np2sysp_o7ed(UINT port, REG8 dat) { | |
| np2sysp.outval = (dat << 24) + (np2sysp.outval >> 8); | |
| } | |
| static void IOOUTCALL np2sysp_o7ef(UINT port, REG8 dat) { | static void IOOUTCALL np2sysp_o7ef(UINT port, REG8 dat) { |
| const SYSPCMD *cmd; | const SYSPCMD *cmd; |
| Line 284 const SYSPCMD *cmdterm; | Line 291 const SYSPCMD *cmdterm; |
| (void)port; | (void)port; |
| } | } |
| static REG8 IOINPCALL np2sysp_i7ed(UINT port) { | |
| REG8 ret; | |
| ret = (REG8)(np2sysp.inpval & 0xff); | |
| np2sysp.inpval = (ret << 24) + (np2sysp.inpval >> 8); | |
| return(ret); | |
| } | |
| static REG8 IOINPCALL np2sysp_i7ef(UINT port) { | static REG8 IOINPCALL np2sysp_i7ef(UINT port) { |
| REG8 ret; | REG8 ret; |
| Line 307 void np2sysp_reset(void) { | Line 323 void np2sysp_reset(void) { |
| void np2sysp_bind(void) { | void np2sysp_bind(void) { |
| iocore_attachout(0x07ef, np2sysp_o7ed); | |
| iocore_attachout(0x07ef, np2sysp_o7ef); | iocore_attachout(0x07ef, np2sysp_o7ef); |
| iocore_attachinp(0x07ef, np2sysp_i7ed); | |
| iocore_attachinp(0x07ef, np2sysp_i7ef); | iocore_attachinp(0x07ef, np2sysp_i7ef); |
| } | } |