Pristine Ack-5.5
[Ack-5.5.git] / util / int / switch.c
1 /*
2         The big switch on all the opcodes
3 */
4
5 /* $Id: switch.c,v 2.2 1994/06/24 10:49:13 ceriel Exp $ */
6
7 #include        <em_abs.h>
8 #include        "global.h"
9 #include        "opcode.h"
10 #include        "text.h"
11 #include        "trap.h"
12 #include        "warn.h"
13
14 do_instr(opcode)
15         unsigned int opcode;
16 {
17         switch (opcode) {
18 #include        "switch/DoCases"        /* for the muscle */
19                 case SECONDARY:
20                         do_instr(SEC_BASE + nextPCbyte());
21                         break;
22                 case TERTIARY:
23                         do_instr(TERT_BASE + nextPCbyte());
24                         break;
25                 default:
26                         wtrap(WBADOPC, EILLINS);
27                         break;
28         }
29 }