mirror of
https://github.com/rcornwell/sims.git
synced 2026-01-13 23:35:30 +00:00
KA10: Coverity cleanup for KA/KI/KL
This commit is contained in:
parent
877c4be465
commit
d46f78f9de
@ -6687,6 +6687,8 @@ ldb_ptr:
|
||||
} else {
|
||||
#if KL | KS
|
||||
ptr_flg = 0;
|
||||
#endif
|
||||
#if KL
|
||||
ld_exe:
|
||||
#endif
|
||||
f = 0;
|
||||
|
||||
@ -533,7 +533,7 @@ t_stat mt_error(UNIT * uptr, t_stat r, DEVICE * dptr)
|
||||
t_stat mt_srv(UNIT * uptr)
|
||||
{
|
||||
DEVICE *dptr = uptr->dptr;
|
||||
int unit = (uptr - dptr->units) & 7;
|
||||
int unit;
|
||||
int cmd = (uptr->CNTRL & FUNCTION) >> 9;
|
||||
t_mtrlnt reclen;
|
||||
t_stat r = SCPE_ARG; /* Force error if not set */
|
||||
@ -560,6 +560,7 @@ t_stat mt_srv(UNIT * uptr)
|
||||
if (dptr == NULL)
|
||||
dptr = find_dev_from_unit(uptr);
|
||||
|
||||
unit = (uptr - dptr->units) & 7;
|
||||
switch(cmd) {
|
||||
case NOP_IDLE:
|
||||
sim_debug(DEBUG_DETAIL, dptr, "MT%o Idle\n", unit);
|
||||
|
||||
@ -288,24 +288,20 @@ t_stat load_dmp (FILE *fileref)
|
||||
uint64 data;
|
||||
uint32 high = 0;
|
||||
|
||||
while (fgets((char *)buffer, 80, fileref) != 0) {
|
||||
p = (char *)buffer;
|
||||
while (*p >= '0' && *p <= '7') {
|
||||
data = 0;
|
||||
while (*p >= '0' && *p <= '7') {
|
||||
data = (data << 3) + *p - '0';
|
||||
p++;
|
||||
}
|
||||
if (addr == 0135 && data != 0)
|
||||
high = (uint32)(data & RMASK);
|
||||
if (high != 0 && high == addr) {
|
||||
addr = 0400000;
|
||||
high = 0;
|
||||
}
|
||||
M[addr++] = data;
|
||||
if (*p == ' ' || *p == '\t')
|
||||
p++;
|
||||
}
|
||||
while (fgets(&buffer[0], 80, fileref) != 0) {
|
||||
data = 0;
|
||||
p = &buffer[0];
|
||||
if (*p >= '0' && *p <= '7') {
|
||||
for (; *p >= '0' && *p <= '7'; p++)
|
||||
data = (data << 3) + *p - '0';
|
||||
if (addr == 0135 && data != 0)
|
||||
high = (uint32)(data & RMASK);
|
||||
if (high != 0 && high == addr) {
|
||||
addr = 0400000;
|
||||
high = 0;
|
||||
}
|
||||
M[addr++] = data;
|
||||
}
|
||||
}
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user