Diff for /xmil/ievent.c between versions 1.5 and 1.6

version 1.5, 2004/08/15 17:51:53 version 1.6, 2008/06/02 20:07:30
Line 6 Line 6
 #include        "ievent.h"  #include        "ievent.h"
   
   
 // ここでデイジーチェイン  /* ここでデイジーチェイン */
   
   
 typedef BRESULT (*IEVENTFN)(UINT id);  typedef BRESULT (*IEVENTFN)(UINT id);
Line 18  static BRESULT dummy(UINT id) { Line 18  static BRESULT dummy(UINT id) {
 }  }
   
 static const IEVENTFN ieventfn[IEVENT_MAX] = {  static const IEVENTFN ieventfn[IEVENT_MAX] = {
                                 dummy,                  // IEVENT_SIO                                  dummy,                  /* IEVENT_SIO    */
                                 ieitem_dmac,    // IEVENT_DMA                                  ieitem_dmac,    /* IEVENT_DMA    */
                                 ieitem_ctc,             // IEVENT_CTC0                                  ieitem_ctc,             /* IEVENT_CTC0   */
                                 ieitem_ctc,             // IEVENT_CTC1                                  ieitem_ctc,             /* IEVENT_CTC1   */
                                 ieitem_ctc,             // IEVENT_CTC2                                  ieitem_ctc,             /* IEVENT_CTC2   */
                                 ieitem_scpu};   // IEVENT_SUBCPU                                  ieitem_scpu};   /* IEVENT_SUBCPU */
   
   
 // ----  /* ---- */
   
 void ievent_progress(void) {  void ievent_progress(void) {
   
Line 43  void ievent_progress(void) { Line 43  void ievent_progress(void) {
                 if (CPU_REQIRQ & bit) {                  if (CPU_REQIRQ & bit) {
                         CPU_REQIRQ ^= bit;                          CPU_REQIRQ ^= bit;
                         if (ieventfn[i](i)) {                          if (ieventfn[i](i)) {
                                 if (i != IEVENT_SUBCPU) {               // サブCPUは別処理                                  if (i != IEVENT_SUBCPU) {               /* サブCPUは別処理 */
                                         CPU_IRQ |= bit;                                          CPU_IRQ |= bit;
                                 }                                  }
                                 return;                                  return;
Line 76  void ievent_eoi(void) { Line 76  void ievent_eoi(void) {
         UINT    i;          UINT    i;
         UINT    bit;          UINT    bit;
   
 //      CPU_IRQ = CPU_IRQ & (CPU_IRQ - 1);  
   
         if (CPU_IRQ == 0) {          if (CPU_IRQ == 0) {
                 return;                  return;
         }          }

Removed from v.1.5  
changed lines
  Added in v.1.6


RetroPC.NET-CVS <cvs@retropc.net>