src/emu/machine/scsihd.c
| r6448 | r6449 | |
| 225 | 225 | case 0x2a: // WRITE(10) |
| 226 | 226 | if ((our_this->disk) && (our_this->blocks)) |
| 227 | 227 | { |
| 228 | | printf("We have a disc and we have %d blocks, with a data length of %d, time to write\n", our_this->blocks, dataLength); |
| 229 | 228 | while (dataLength > 0) |
| 230 | 229 | { |
| 231 | | printf("Attempting to write some data at LBA %08x\n", our_this->lba); |
| 232 | 230 | if (!hard_disk_write(our_this->disk, our_this->lba, data)) |
| 233 | 231 | { |
| 234 | 232 | logerror("SCSIHD: HD write error!\n"); |
| r6448 | r6449 | |
| 309 | 307 | return 0; |
| 310 | 308 | |
| 311 | 309 | case SCSIOP_WRITE_DATA: |
| 312 | | printf("intparm = %08x%08x\n", (UINT32)(intparm >> 32), (UINT32)(intparm & 0x00000000ffffffff)); |
| 313 | 310 | scsihd_write_data( (SCSIInstance *)file, (UINT8 *)ptrparm, intparm ); |
| 314 | 311 | return 0; |
| 315 | 312 | |