Diff for /xmil/io/ctc.c between versions 1.8 and 1.9

version 1.8, 2004/08/13 01:35:59 version 1.9, 2004/08/13 02:16:33
Line 173  BRESULT ieitem_ctc(UINT id) { Line 173  BRESULT ieitem_ctc(UINT id) {
         if (intr) {          if (intr) {
                 for (i=0, bit=1; i<4; i++, bit<<=1) {                  for (i=0, bit=1; i<4; i++, bit<<=1) {
                         if (intr & bit) {                          if (intr & bit) {
 #if 0                   // アークスのタイミング→あとで修正  #if 1                   // アークスのタイミング→あとで修正
                                 if (0)                                  if (0)
 #elif 1  #elif 1
                                 if ((ch->countmax[i] - ch->count[i]) >= 256)                                  if ((ch->countmax[i] - ch->count[i]) >= 256)
Line 191  BRESULT ieitem_ctc(UINT id) { Line 191  BRESULT ieitem_ctc(UINT id) {
                                 else if (!r) {                                  else if (!r) {
                                         r = TRUE;                                          r = TRUE;
                                         intr ^= bit;                                          intr ^= bit;
 //                                      TRACEOUT(("ctc int %d", i));  //                                      TRACEOUT(("ctc int %d %d", ch->num, i));
                                         Z80_INTERRUPT((REG8)(ch->vector + (i << 1)));                                          Z80_INTERRUPT((REG8)(ch->vector + (i << 1)));
                                 }                                  }
                         }                          }
Line 283  void IOOUTCALL ctc_o(UINT port, REG8 val Line 283  void IOOUTCALL ctc_o(UINT port, REG8 val
   
         CTCCH   *ch;          CTCCH   *ch;
   
 //      TRACEOUT(("ctc - %.4x %.2x [%.4x]", port, value, Z80_PC));          TRACEOUT(("ctc - %.4x %.2x [%.4x]", port, value, Z80_PC));
         ch = getctcch(port);          ch = getctcch(port);
         if (ch != NULL) {          if (ch != NULL) {
                 ctcch_o(ch, port, value);                  ctcch_o(ch, port, value);

Removed from v.1.8  
changed lines
  Added in v.1.9


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