diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 14:00:47 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 14:00:47 +0000 |
commit | 7c084f620e6dcec68140cd4df90f64870cae813b (patch) | |
tree | 0752b4ea3e6f7dda7f1a2ab4235d6bffb9455613 /emulators/simh/files/patch-HP2100_hp2100__cpu6.c | |
parent | 1003c77c0b3d3e460dfd89596ea8c299cc0946c1 (diff) | |
download | ports-7c084f620e6dcec68140cd4df90f64870cae813b.tar.gz ports-7c084f620e6dcec68140cd4df90f64870cae813b.zip |
Notes
Diffstat (limited to 'emulators/simh/files/patch-HP2100_hp2100__cpu6.c')
-rw-r--r-- | emulators/simh/files/patch-HP2100_hp2100__cpu6.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/emulators/simh/files/patch-HP2100_hp2100__cpu6.c b/emulators/simh/files/patch-HP2100_hp2100__cpu6.c new file mode 100644 index 000000000000..62d58d9708e5 --- /dev/null +++ b/emulators/simh/files/patch-HP2100_hp2100__cpu6.c @@ -0,0 +1,29 @@ +--- HP2100/hp2100_cpu6.c.orig 2016-12-01 22:43:42 UTC ++++ HP2100/hp2100_cpu6.c +@@ -394,7 +394,7 @@ entry = IR & 017; + pattern = op_os[entry]; /* get operand pattern */ + + if (pattern != OP_N) +- if (reason = cpu_ops (pattern, op, intrq)) /* get instruction operands */ ++ if ((reason = cpu_ops (pattern, op, intrq))) /* get instruction operands */ + return reason; + + tbg_tick = tbg_tick || (IR == 0105357) && iotrap; /* set TBG interrupting flag */ +@@ -544,7 +544,7 @@ switch (entry) { + for (i = 0; i < count; i++) { + ma = ReadW (PC); /* get operand address */ + +- if (reason = resolve (ma, &ma, intrq)) { /* resolve indirect */ ++ if ((reason = resolve (ma, &ma, intrq))) { /* resolve indirect */ + PC = err_PC; /* IRQ restarts instruction */ + break; + } +@@ -710,7 +710,7 @@ switch (entry) { + ma = ReadW (sa); /* get addr of actual */ + sa = (sa + 1) & VAMASK; /* increment address */ + +- if (reason = resolve (ma, &ma, intrq)) { /* resolve indirect */ ++ if ((reason = resolve (ma, &ma, intrq))) { /* resolve indirect */ + PC = err_PC; /* irq restarts instruction */ + break; + } |