Fixed for Compiler indicated bugs

This commit is contained in:
Mark Pizzolato 2012-04-27 15:09:40 -07:00
parent 78009646f0
commit 784f0542f2
2 changed files with 3 additions and 3 deletions

View file

@ -218,8 +218,8 @@ int32 dsk10(int32 io, int32 data)
cur_disk = data & 0x0F;
if (data & 0x80) {
cur_flags[cur_disk] = 0; /* Disable drive */
cur_sect[cur_disk = 0377];
cur_byte[cur_disk = 0377];
cur_sect[cur_disk] = 0377;
cur_byte[cur_disk] = 0377;
return (0);
}
cur_flags[cur_disk] = 0x1A; /* Enable: head move true */

View file

@ -402,7 +402,7 @@ if (op >= 64) /* successful? */
return SCPE_ARG;
val[0] = op | WM; /* store opcode */
cptr = get_glyph (cptr, gbuf, 0); /* get addr or d */
if (((op_table[op] && IO) && (get_io (gbuf, &val[1]) == SCPE_OK)) ||
if (((op_table[op] & IO) && (get_io (gbuf, &val[1]) == SCPE_OK)) ||
(get_addr (gbuf, &val[1]) == SCPE_OK)) {
cptr = get_glyph (cptr, gbuf, 0); /* get addr or d */
if (get_addr (gbuf, &val[4]) == SCPE_OK) {