|
|
| version 1.6, 2004/08/11 13:53:53 | version 1.7, 2004/08/11 16:09:04 |
|---|---|
| Line 106 static void ctcnextevent(CTCCH *ch) { | Line 106 static void ctcnextevent(CTCCH *ch) { |
| if (ch->intr) { | if (ch->intr) { |
| return; | return; |
| } | } |
| event = 0x04000000; | event = 0x01000000; |
| for (i=0; i<3; i++) { | for (i=0; i<3; i++) { |
| if ((ch->cmd[i] & 0x82) == 0x80) { | if ((ch->cmd[i] & 0x82) == 0x80) { |
| clock = ch->count[i]; | clock = ch->count[i]; |
| Line 127 static void ctcnextevent(CTCCH *ch) { | Line 127 static void ctcnextevent(CTCCH *ch) { |
| } | } |
| event = min(event, clock); | event = min(event, clock); |
| } | } |
| event /= 2; | |
| event *= pccore.multiple; | event *= pccore.multiple; |
| event /= 2; | |
| if (event == 0) { | |
| event = 1; | |
| } | |
| nevent_set(NEVENT_CTC0 + ch->num, event, neitem_ctc, NEVENT_ABSOLUTE); | nevent_set(NEVENT_CTC0 + ch->num, event, neitem_ctc, NEVENT_ABSOLUTE); |
| } | } |