uci.physical_geometry = false;
}
if (tmpp2[0]) {
- n = cfgfile_unescape (tmpp2, &end, 0);
- if (!n)
- goto invalid_fs;
- _tcscpy(uci.geometry, n);
- xfree(n);
+ if (tmpp2[0] == '\"') {
+ n = cfgfile_unescape (tmpp2, &end, 0);
+ if (!n)
+ goto invalid_fs;
+ _tcscpy(uci.geometry, n);
+ xfree(n);
+ } else {
+ tmpp = _tcschr (tmpp2, ',');
+ if (tmpp)
+ *tmpp++ = 0;
+ _tcscpy (uci.geometry, tmpp2);
+ }
}
}
}
reset_dbplh(hpos, num);
}
dbplpth_on2 = 0;
- }
+ }
}
static void reset_dbpll (int hpos, int num)
reset_dbpll(hpos, num);
}
dbplptl_on2 = 0;
- }
+ }
}
#endif
},
{
_T("comspec1000"), _T("SA-1000"), _T("Comspec"),
- NULL, comspec_init, NULL, comspec_add_scsi_unit, ROMTYPE_COMSPEC, 0, 0, BOARD_AUTOCONFIG_Z2, true,
+ comspec_preinit, comspec_init, NULL, comspec_add_scsi_unit, ROMTYPE_COMSPEC, 0, 0, BOARD_AUTOCONFIG_Z2, true,
NULL, 0,
true, EXPANSIONTYPE_SCSI,
0, 0, 0, false, NULL,
v = (out[59 * 2 + 0] << 8) | (out[59 * 2 + 1] << 0);
if (v & 1) { // multiple mode?
- *max_multiple = (out[47 * 2 + 0] << 8) | (out[47 * 2 + 1] << 0);
+ *max_multiple = ((out[47 * 2 + 0] << 8) | (out[47 * 2 + 1] << 0)) & 0xff;
}
v = (out[53 * 2 + 0] << 8) | (out[53 * 2 + 1] << 0);
if (ata_get_identity(ide->hdhfd.hfd.geometry, ide->secbuf, true)) {
- if (ide->byteswap)
+ if (!ide->byteswap)
ata_byteswapidentity(ide->secbuf);
} else {
otxt = xrealloc(TCHAR, otxt, len);
}
_tcscat(otxt, s3);
- xfree(s3);
s3 = NULL;
if (!nl)
break;
if (endptr == startptr || endptr[0] != ',')
return -1;
s2 = endptr + 1;
- } else if ((asm_isareg(s + 1) >= 0 || asm_ispc(s + 1)) && s[3] == ',' || (asm_isdreg(s + 4) >= 0 || asm_isareg(s + 4) >= 0)) {
+ } else if (((asm_isareg(s + 1) >= 0 || asm_ispc(s + 1)) && s[3] == ',') || (asm_isdreg(s + 4) >= 0 || asm_isareg(s + 4) >= 0)) {
if (dots != 1)
return -1;
s2 = s + 1;
struct instr *dp;
struct mnemolookup *lookup1, *lookup2;
dp = table68k + regs.irc;
- for (lookup1 = lookuptab; lookup1->mnemo != dp->mnemo; lookup1++);
+ for (lookup1 = lookuptab; lookup1->mnemo != dp->mnemo; lookup1++)
+ ;
dp = table68k + regs.ir;
- for (lookup2 = lookuptab; lookup2->mnemo != dp->mnemo; lookup2++);
+ for (lookup2 = lookuptab; lookup2->mnemo != dp->mnemo; lookup2++)
+ ;
console_out_f (_T("Prefetch %04x (%s) %04x (%s) Chip latch %08X\n"), regs.irc, lookup1->name, regs.ir, lookup2->name, regs.chipset_latch_rw);
}
void addhard_add_scsi_unit(int ch, struct uaedev_config_info *ci, struct romconfig *rc)
{
generic_soft_scsi_add(ch, ci, rc, NCR5380_ADDHARD, 65536, 32768, ROMTYPE_ADDHARD);
-}
\ No newline at end of file
+}