|
|
| version 1.20, 2004/03/19 00:30:01 | version 1.24, 2005/05/13 14:49:24 |
|---|---|
| Line 12 | Line 12 |
| #define BEEPCOUNTEREX // BEEPアイドル時のカウンタをα倍に | #define BEEPCOUNTEREX // BEEPアイドル時のカウンタをα倍に |
| // #if defined(CPUCORE_IA32) | #if defined(CPUCORE_IA32) |
| #define uPD71054 | #define uPD71054 |
| // #endif | #endif |
| // --- Interval timer | // --- Interval timer |
| Line 149 static UINT getcount(const _PITCH *pitch | Line 149 static UINT getcount(const _PITCH *pitch |
| case 1: | case 1: |
| switch(pitch->ctrl & 0x06) { | switch(pitch->ctrl & 0x06) { |
| #ifdef uPD71054 // ? | #ifdef uPD71054 // ? |
| case 0x00: | // case 0x00: |
| #endif | #endif |
| case 0x04: | case 0x04: |
| return(pitch->value); | return(pitch->value); |
| Line 178 static UINT getcount(const _PITCH *pitch | Line 178 static UINT getcount(const _PITCH *pitch |
| clock = nevent_getremain(NEVENT_RS232C); | clock = nevent_getremain(NEVENT_RS232C); |
| break; | break; |
| #if !defined(DISABLE_SOUND) | |
| case 3: | case 3: |
| return(board14_pitcount()); | return(board14_pitcount()); |
| #endif | |
| default: | default: |
| clock = 0; | clock = 0; |
| Line 335 static void IOOUTCALL pit_o73(UINT port, | Line 337 static void IOOUTCALL pit_o73(UINT port, |
| return; | return; |
| } | } |
| setbeepevent(pitch->value, NEVENT_ABSOLUTE); | setbeepevent(pitch->value, NEVENT_ABSOLUTE); |
| if (!(pitch->ctrl & 0x0c)) { | beep_lheventset(1); // ver0.79 |
| beep_lheventset(1); | if (pitch->ctrl & 0x0c) { |
| } | |
| else { | |
| beep_hzset(pitch->value); | beep_hzset(pitch->value); |
| } | } |
| (void)port; | (void)port; |
| Line 419 void itimer_reset(void) { | Line 419 void itimer_reset(void) { |
| pit.ch[1].value = beepcnt; | pit.ch[1].value = beepcnt; |
| pit.ch[2].ctrl = 0xb6 & 0x3f; | pit.ch[2].ctrl = 0xb6 & 0x3f; |
| pit.ch[2].ch = 2; | pit.ch[2].ch = 2; |
| #if !defined(DISABLE_SOUND) | |
| pit.ch[3].ctrl = 0x36; | pit.ch[3].ctrl = 0x36; |
| pit.ch[3].ch = 3; | pit.ch[3].ch = 3; |
| pit.ch[4].ctrl = 0x36; | pit.ch[4].ctrl = 0x36; |
| pit.ch[4].ch = 4; | pit.ch[4].ch = 4; |
| #endif | |
| setsystimerevent(0, NEVENT_ABSOLUTE); | setsystimerevent(0, NEVENT_ABSOLUTE); |
| beep_lheventset(1); // ver0.79 | |
| beep_hzset(beepcnt); | beep_hzset(beepcnt); |
| setrs232cevent(0, NEVENT_ABSOLUTE); | |
| } | } |
| void itimer_bind(void) { | void itimer_bind(void) { |