mirror of
https://github.com/simh/simh.git
synced 2026-01-26 12:02:14 +00:00
SDS: Correct ill-formed statement
VMS compiler objected to variable ch being modified in two places in the same statement. Expand into full if statement instead.
This commit is contained in:
@@ -484,7 +484,10 @@ nonop = inst & 077777;
|
|||||||
if (sw & SWMASK ('A')) { /* SDS internal ASCII? */
|
if (sw & SWMASK ('A')) { /* SDS internal ASCII? */
|
||||||
for (i = 16; i >= 0; i -= 8) {
|
for (i = 16; i >= 0; i -= 8) {
|
||||||
ch = (inst >> i) & 0377; /* map printable chars */
|
ch = (inst >> i) & 0377; /* map printable chars */
|
||||||
ch = ch <= 0137 ? ch += 040 : '.'; /* from int. to ext. ASCII */
|
if (ch <= 0137)
|
||||||
|
ch += 040; /* from int. to ext. ASCII */
|
||||||
|
else
|
||||||
|
ch = '.'; /* or indicate not displayable */
|
||||||
fprintf (of, "%c", ch);
|
fprintf (of, "%c", ch);
|
||||||
}
|
}
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user