/* CRYSIF.C 05/04/84 - 12/19/84 Lee Lorenzen */ #include #include #include #include #include #include /* take out for alcyon */ EXTERN BYTE ctrl_cnts[]; typedef struct cblk { LONG cb_pcontrol; LONG cb_pglobal; LONG cb_pintin; LONG cb_pintout; LONG cb_padrin; LONG cb_padrout; } CBLK; /* in STARTUP.A86 */ EXTERN WORD crystal(); GLOBAL CBLK c; GLOBAL UWORD control[C_SIZE]; GLOBAL UWORD global[G_SIZE]; GLOBAL UWORD int_in[I_SIZE]; GLOBAL UWORD int_out[O_SIZE]; GLOBAL LONG addr_in[AI_SIZE]; GLOBAL LONG addr_out[AO_SIZE]; GLOBAL WORD gl_apid; GLOBAL LONG ad_c; WORD crys_if(opcode) WORD opcode; { WORD i; BYTE *pctrl; control[0] = opcode; pctrl = &ctrl_cnts[(opcode - 10) * 3]; for(i=1; i