Diff for /np2/bios/sxsibios.c between versions 1.16 and 1.17

version 1.16, 2005/02/07 14:46:07 version 1.17, 2005/03/05 06:02:28
Line 174  static REG8 sasibios_init(UINT type, SXS Line 174  static REG8 sasibios_init(UINT type, SXS
         diskequip &= 0xf0ff;          diskequip &= 0xf0ff;
         for (i=0x00, bit=0x0100; i<0x02; i++, bit<<=1) {          for (i=0x00, bit=0x0100; i<0x02; i++, bit<<=1) {
                 sxsi = sxsi_getptr(i);                  sxsi = sxsi_getptr(i);
                 if ((sxsi) && (sxsi->fname[0])) {                  if ((sxsi) && (sxsi->flag & SXSIFLAG_READY)) {
                         diskequip |= bit;                          diskequip |= bit;
                 }                  }
         }          }
Line 187  static REG8 sasibios_init(UINT type, SXS Line 187  static REG8 sasibios_init(UINT type, SXS
 static REG8 sasibios_sense(UINT type, SXSIDEV sxsi) {  static REG8 sasibios_sense(UINT type, SXSIDEV sxsi) {
   
         if (type == SXSIBIOS_SASI) {          if (type == SXSIBIOS_SASI) {
                 return((REG8)((sxsi->type >> 8) & 7));                  return((REG8)(sxsi->mediatype & 7));
         }          }
         else {          else {
                 if (CPU_AH == 0x84) {                  if (CPU_AH == 0x84) {
Line 283  static REG8 scsibios_init(UINT type, SXS Line 283  static REG8 scsibios_init(UINT type, SXS
         ZeroMemory(&mem[0x00460], 0x20);          ZeroMemory(&mem[0x00460], 0x20);
         for (i=0, bit=1; i<4; i++, bit<<=1) {          for (i=0, bit=1; i<4; i++, bit<<=1) {
                 sxsi = sxsi_getptr((REG8)(0x20 + i));                  sxsi = sxsi_getptr((REG8)(0x20 + i));
                 if ((sxsi) && (sxsi->fname[0])) {                  if ((sxsi) && (sxsi->flag & SXSIFLAG_READY)) {
                         mem[MEMB_DISK_EQUIPS] |= bit;                          mem[MEMB_DISK_EQUIPS] |= bit;
                         scsibios_set(i, sxsi->sectors, sxsi->surfaces,                          scsibios_set(i, sxsi->sectors, sxsi->surfaces,
                                                         sxsi->cylinders, sxsi->size, TRUE);                                                          sxsi->cylinders, sxsi->size, TRUE);

Removed from v.1.16  
changed lines
  Added in v.1.17


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