Diff for /np2/bios/sxsibios.c between versions 1.3 and 1.4

version 1.3, 2004/01/22 08:40:30 version 1.4, 2004/01/23 12:04:08
Line 230  static REG8 scsibios_init(UINT type, SXS Line 230  static REG8 scsibios_init(UINT type, SXS
   
         UINT8   i;          UINT8   i;
         UINT8   bit;          UINT8   bit;
         UINT16  w;          UINT32  dat;
   
         mem[MEMB_DISK_EQUIPS] = 0;          mem[MEMB_DISK_EQUIPS] = 0;
         ZeroMemory(&mem[0x00460], 0x20);          ZeroMemory(&mem[0x00460], 0x20);
Line 238  static REG8 scsibios_init(UINT type, SXS Line 238  static REG8 scsibios_init(UINT type, SXS
                 sxsi = sxsi_getptr((REG8)(0x20 + i));                  sxsi = sxsi_getptr((REG8)(0x20 + i));
                 if ((sxsi) && (sxsi->fname[0])) {                  if ((sxsi) && (sxsi->fname[0])) {
                         mem[MEMB_DISK_EQUIPS] |= bit;                          mem[MEMB_DISK_EQUIPS] |= bit;
                         mem[0x00460+i*4] = sxsi->sectors;                          dat = sxsi->sectors;
                         mem[0x00461+i*4] = sxsi->surfaces;                          dat |= (sxsi->surfaces << 8);
                           dat |= sxsi->cylinders & 0xf000;
                           dat |= (sxsi->cylinders & 0xfff) << 16;
                         switch(sxsi->size) {                          switch(sxsi->size) {
                                 case 256:                                  case 256:
                                         w = 0 << 12;                                  //      dat |= 0 << (12 + 16);
                                         break;                                          break;
   
                                 case 512:                                  case 512:
                                         w = 1 << 12;                                          dat |= 1 << (12 + 16);
                                         break;                                          break;
   
                                 default:                                  default:
                                         w = 2 << 12;                                          dat |= 2 << (12 + 16);
                                         break;                                          break;
                         }                          }
                         w |= 0xc000;                          dat |= 0xc0000000;
                         w |= sxsi->cylinders;                          SETBIOSMEM32(0x00460+i*4, dat);
                         SETBIOSMEM16(0x00462+i*4, w);  
                 }                  }
         }          }
         (void)type;          (void)type;

Removed from v.1.3  
changed lines
  Added in v.1.4


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