Author: Dennis Boone
Description: fix the H316 LDX instuction
---
--- simh-3.8.1.orig/H316/h316_cpu.c
+++ simh-3.8.1/H316/h316_cpu.c
@@ -614,13 +614,13 @@ switch (I_GETOP (MB)) {
         break;
 
     case 015: case 055:                                 /* STX */
-        if (reason = Ea (MB, &Y))                       /* eff addr */
+        if (reason = Ea (MB & ~IDX, &Y))                /* eff addr */
             break;
         Write (Y, XR);                                  /* store XR */
         break;
 
     case 035: case 075:                                 /* LDX */
-        if (reason = Ea (MB, &Y))                       /* eff addr */
+        if (reason = Ea (MB & ~IDX, &Y))                /* eff addr */
             break;
         XR = Read (Y);                                  /* load XR */
         break;
