aboutsummaryrefslogtreecommitdiff
path: root/emulators/simh/files/patch-ALTAIR_altair__cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/simh/files/patch-ALTAIR_altair__cpu.c')
-rw-r--r--emulators/simh/files/patch-ALTAIR_altair__cpu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/simh/files/patch-ALTAIR_altair__cpu.c b/emulators/simh/files/patch-ALTAIR_altair__cpu.c
new file mode 100644
index 000000000000..8d0eceae3ee3
--- /dev/null
+++ b/emulators/simh/files/patch-ALTAIR_altair__cpu.c
@@ -0,0 +1,20 @@
+--- ALTAIR/altair_cpu.c.orig 2016-12-01 22:43:42 UTC
++++ ALTAIR/altair_cpu.c
+@@ -313,7 +313,7 @@ int32 sim_instr (void)
+
+ while (reason == 0) { /* loop until halted */
+ if (sim_interval <= 0) { /* check clock queue */
+- if (reason = sim_process_event ()) break;
++ if ((reason = sim_process_event ())) break;
+ }
+
+ if (int_req > 0) { /* interrupt? */
+@@ -366,7 +366,7 @@ int32 sim_instr (void)
+ if ((OP & 0xCF) == 0x01) { /* LXI */
+ DAR = M[PC] & 0x00ff;
+ PC++;
+- DAR = DAR | (M[PC] <<8) & 0xFF00;;
++ DAR = DAR | ((M[PC] <<8) & 0xFF00);
+ putpair((OP >> 4) & 0x03, DAR);
+ PC++;
+ continue;