|
|
| version 1.17, 2004/03/10 07:41:49 | version 1.18, 2004/03/10 23:01:08 |
|---|---|
| Line 10 | Line 10 |
| #include "beep.h" | #include "beep.h" |
| // #define uPD71054 // NP2はuPD8253Cベース | |
| #define BEEPCOUNTEREX // BEEPアイドル時のカウンタをα倍に | #define BEEPCOUNTEREX // BEEPアイドル時のカウンタをα倍に |
| Line 303 static void IOOUTCALL pit_o77(UINT port, | Line 302 static void IOOUTCALL pit_o77(UINT port, |
| beep_modeset(); | beep_modeset(); |
| } | } |
| } | } |
| #if defined(uPD71054) | |
| else { | |
| TRACEOUT(("multiple latch commands - %x", dat)); | |
| for (ch=0; ch<3; ch++) { | |
| if (dat & (2 << ch)) { | |
| if (!(dat & 0x10)) { | |
| } | |
| if (!(dat & 0x20)) { | |
| } | |
| } | |
| } | |
| } | |
| #endif | |
| (void)port; | (void)port; |
| } | } |
| static REG8 IOINPCALL pit_i71(UINT port) { | static REG8 IOINPCALL pit_i71(UINT port) { |
| return(pit_getcount((port >> 1) & 3)); | int ch; |
| ch = (port >> 1) & 3; | |
| #if defined(uPD71054) | |
| if (pit.stat[ch]) { | |
| REG8 ret; | |
| ret = pit.stat[ch]; | |
| pit.stat[ch] = 0; | |
| TRACEOUT(("stat out -> %d-%x", ch, ret)); | |
| return(ret); | |
| } | |
| #endif | |
| return(pit_getcount(ch)); | |
| } | } |