1
0
mirror of https://github.com/simh/simh.git synced 2026-02-01 06:13:34 +00:00

SIMH: Fix spelling errors in comments and strings

This commit is contained in:
Peter Schorn
2024-07-16 12:04:53 -10:00
committed by Mark Pizzolato
parent 32d6b09c8e
commit c7df248f09
32 changed files with 2021 additions and 2021 deletions

View File

@@ -71,7 +71,7 @@
#define KEY_ILLREQ 5 /* illegal request */
#define KEY_PROT 7 /* data protect */
#define KEY_BLANK 8 /* blank check */
#define KEY_M_ILI 0x20 /* incorrent length indicator */
#define KEY_M_ILI 0x20 /* incorrect length indicator */
/* Additional sense codes */
@@ -380,7 +380,7 @@ scsi_debug_cmd (bus, "Test Unit Ready\n");
if (uptr->flags & UNIT_ATT) /* attached? */
scsi_status (bus, STS_OK, KEY_OK, ASC_OK); /* unit is ready */
else
else
scsi_status (bus, STS_CHK, KEY_NOTRDY, ASC_NOMEDIA); /* no media present */
}
@@ -427,11 +427,11 @@ else {
}
#endif
if (uptr->drvtyp->flags & DRVFL_RMV)
bus->buf[bus->buf_b++] = 0x80; /* removeable */
bus->buf[bus->buf_b++] = 0x80; /* removable */
else
bus->buf[bus->buf_b++] = 0; /* fixed */
bus->buf[bus->buf_b++] = uptr->drvtyp->scsiver; /* versions */
bus->buf[bus->buf_b++] = uptr->drvtyp->scsiver; /* respose data format */
bus->buf[bus->buf_b++] = uptr->drvtyp->scsiver; /* response data format */
bus->buf[bus->buf_b++] = 31; /* additional length */
bus->buf[bus->buf_b++] = 0; /* reserved */
bus->buf[bus->buf_b++] = 0; /* reserved */
@@ -501,7 +501,7 @@ if (bus->phase == SCSI_CMD) {
}
else if (bus->phase == SCSI_DATO) {
scsi_debug_cmd (bus, "Mode Select(6) - DATO\n");
if ((DRVFL_GET_IFTYPE(uptr->drvtyp) == SCSI_TAPE) &&
if ((DRVFL_GET_IFTYPE(uptr->drvtyp) == SCSI_TAPE) &&
(uptr->drvtyp->flags & DRVFL_QICTAPE)) {
blk_size = ((uint32)bus->buf[9]) << 16 |
((uint32)bus->buf[10]) << 8 |
@@ -638,7 +638,7 @@ if ((pc == 0x4) || (pc == 0x3F)) {
bus->buf[bus->buf_b++] = 0x4; /* landing zone cyl (15:8) */
bus->buf[bus->buf_b++] = 0; /* landing zone cyl (7:0) */
bus->buf[bus->buf_b++] = 0; /* reserved, RPL */
bus->buf[bus->buf_b++] = 0; /* rotational offet */
bus->buf[bus->buf_b++] = 0; /* rotational offset */
bus->buf[bus->buf_b++] = 0; /* reserved */
bus->buf[bus->buf_b++] = 0x1C; /* medium rotation rate (15:8) */
bus->buf[bus->buf_b++] = 0x20; /* medium rotation rate (7:0) */
@@ -1179,7 +1179,7 @@ for (i = 0; i < sects; i++) {
r = sim_tape_wrtmk (uptr);
if (r != MTSE_OK) break;
}
scsi_tape_status (bus, r);
bus->buf[bus->buf_b++] = bus->status; /* status code */
scsi_set_phase (bus, SCSI_STS); /* status phase next */
@@ -1751,7 +1751,7 @@ t_stat scsi_attach (UNIT *uptr, CONST char *cptr)
return scsi_attach_ex (uptr, cptr, NULL);
}
/* Dettach device */
/* Detach device */
t_stat scsi_detach (UNIT *uptr)
{