Diff for /np2/io/fdc.c between versions 1.10 and 1.14

version 1.10, 2004/01/30 01:29:13 version 1.14, 2004/08/02 11:47:30
Line 712  REG8 DMACCALL fdc_dataread(void) { Line 712  REG8 DMACCALL fdc_dataread(void) {
   
 static void IOOUTCALL fdc_o92(UINT port, REG8 dat) {  static void IOOUTCALL fdc_o92(UINT port, REG8 dat) {
   
 //      TRACEOUT(("fdc out %.2x %.2x [%.4x:%.4x]", port, dat, CPU_CS, CPU_IP));          TRACEOUT(("fdc out %.2x %.2x [%.4x:%.4x]", port, dat, CPU_CS, CPU_IP));
   
         if (((port >> 4) ^ fdc.chgreg) & 1) {          if (((port >> 4) ^ fdc.chgreg) & 1) {
                 return;                  return;
Line 724  static void IOOUTCALL fdc_o92(UINT port, Line 724  static void IOOUTCALL fdc_o92(UINT port,
   
 static void IOOUTCALL fdc_o94(UINT port, REG8 dat) {  static void IOOUTCALL fdc_o94(UINT port, REG8 dat) {
   
 //      TRACEOUT(("fdc out %.2x %.2x [%.4x:%.4x]", port, dat, CPU_CS, CPU_IP));          TRACEOUT(("fdc out %.2x %.2x [%.4x:%.4x]", port, dat, CPU_CS, CPU_IP));
   
         if (((port >> 4) ^ fdc.chgreg) & 1) {          if (((port >> 4) ^ fdc.chgreg) & 1) {
                 return;                  return;
Line 762  static REG8 IOINPCALL fdc_i92(UINT port) Line 762  static REG8 IOINPCALL fdc_i92(UINT port)
         else {          else {
                 ret = fdc.lastdata;                  ret = fdc.lastdata;
         }          }
 //      TRACEOUT(("fdc in %.2x %.2x [%.4x:%.4x]", port, ret, CPU_CS, CPU_IP));          TRACEOUT(("fdc in %.2x %.2x [%.4x:%.4x]", port, ret, CPU_CS, CPU_IP));
         return(ret);          return(ret);
 }  }
   
Line 771  static REG8 IOINPCALL fdc_i94(UINT port) Line 771  static REG8 IOINPCALL fdc_i94(UINT port)
         if (((port >> 4) ^ fdc.chgreg) & 1) {          if (((port >> 4) ^ fdc.chgreg) & 1) {
                 return(0xff);                  return(0xff);
         }          }
         return(0x40);          if (port & 0x10) {              // 94
                   return(0x40);
           }
           else {                                  // CC
                   return(0x70);           // readyを立てるるる
           }
 }  }
   
   
Line 822  void fdc_reset(void) { Line 827  void fdc_reset(void) {
   
         ZeroMemory(&fdc, sizeof(fdc));          ZeroMemory(&fdc, sizeof(fdc));
         fdc.equip = np2cfg.fddequip;          fdc.equip = np2cfg.fddequip;
   #if defined(SUPPORT_PC9821)
           fdc.support144 = 1;
   #else
         fdc.support144 = np2cfg.usefd144;          fdc.support144 = np2cfg.usefd144;
   #endif
         fdcstatusreset();          fdcstatusreset();
         dmac_attach(DMADEV_2HD, FDC_DMACH2HD);          dmac_attach(DMADEV_2HD, FDC_DMACH2HD);
         dmac_attach(DMADEV_2DD, FDC_DMACH2DD);          dmac_attach(DMADEV_2DD, FDC_DMACH2DD);

Removed from v.1.10  
changed lines
  Added in v.1.14


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