src/emu/machine/scsihd.c
| r6208 | r6209 | |
| 116 | 116 | SCSIHd *our_this = (SCSIHd *)SCSIThis( &SCSIClassHARDDISK, scsiInstance ); |
| 117 | 117 | SCSIGetCommand( scsiInstance, &command, &commandLength ); |
| 118 | 118 | |
| 119 | // if we're a drive without a disk, return all zeroes |
| 120 | if (!our_this->disk) |
| 121 | { |
| 122 | memset(data, 0, dataLength); |
| 123 | return; |
| 124 | } |
| 125 | |
| 119 | 126 | switch ( command[0] ) |
| 120 | 127 | { |
| 121 | 128 | case 0x03: // REQUEST SENSE |
| r6208 | r6209 | |
| 207 | 214 | SCSIHd *our_this = (SCSIHd *)SCSIThis( &SCSIClassHARDDISK, scsiInstance ); |
| 208 | 215 | SCSIGetCommand( scsiInstance, &command, &commandLength ); |
| 209 | 216 | |
| 217 | if (!our_this->disk) |
| 218 | { |
| 219 | return; |
| 220 | } |
| 221 | |
| 210 | 222 | switch ( command[0] ) |
| 211 | 223 | { |
| 212 | 224 | case 0x0a: // WRITE(6) |