Add em22 compile, change EM machine executable format to put proc table in text
[Ack-5.5.git] / util / int / do_proc.c
index ff2a39b..0d24494 100644 (file)
@@ -68,19 +68,18 @@ call(new_PI, rsbcode)
        int rsbcode;
 {
        /* legality of new_PI has already been checked */
-       register size nloc = proctab[new_PI].pr_nloc;
-       register ptr ep = proctab[new_PI].pr_ep;
 
        push_frame(SP);                 /* remember AB */
        pushrsb(rsbcode);
 
        /* do the call */
        PI = new_PI;
-       st_inc(nloc);
-       newPC(ep);
+       read_proctab(new_PI, &proctab);
+       st_inc(proctab.pr_nloc);
+       newPC(proctab.pr_ep);
        spoilFRA();
        LOG(("@p5 call: new_PI = %lu, nloc = %lu, ep = %lu",
-                               new_PI, nloc, ep));
+                               new_PI, proctab.pr_nloc, proctab.pr_ep));
 }
 
 /************************************************************************