typedef struct { // template for instruction UWORD lctr; // location counter UWORD instr_len; // length of instruction UWORD opcode; // instruction opcode/mode/register UWORD eff_add; // value of operand 2 UWORD relocate; // relocation bit UWORD pseudo; // pseudo opcode } INSTRUCTION; typedef struct { // template for symbol table UBYTE symbol[4]; // symbol name UWORD lctr; // location of symbol } SYMTAB; typedef struct { UBYTE name[5]; UBYTE val; } OPCODES; typedef struct { UBYTE name[4]; UBYTE val; } PSEUDO_OPCODES; typedef struct { WORD r0; WORD r1; WORD r2; WORD r3; WORD pc; WORD sp; WORD zero; WORD neg; } CPU;