Skip to content

Commit

Permalink
Fixed SCSI behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Mar 28, 2021
1 parent eed5e7a commit c2c8951
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/towns/scsi/scsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,24 @@ void TownsSCSI::EnterStatusPhase(void)
}
/* virtual */ unsigned int TownsSCSI::IOReadByte(unsigned int ioport)
{
/* 2021/03/27
SCSI Controller can accept command even when no device is connected.
This change was necessary to address the situation:
(1) Hard-disk drive-letter is registered in CMOS, but
(2) No hard-disk image is mounted.
This is similar to the situation when a hard-disk drive-letter is registered in CMOS, but
the external hard drive is powered off.
The real FM TOWNS can boot in this setting. However, the BIOS (IO.SYS) was waiting for the
SCSI ready signal forever unless I comment out the following four lines.
if(true!=state.deviceConnected)
{
return 0xff;
}
*/

switch(ioport)
{
Expand Down

0 comments on commit c2c8951

Please sign in to comment.