summaryrefslogtreecommitdiff
path: root/emulators/simh/files/patch-ALTAIR_altair__cpu.c
blob: 8d0eceae3ee31a6a4f806bbeb46ef5b5eb9e5478 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;