#pragma once enum { NOF_OPCODES = 20, MAX_MNEMONIC_SIZE = 5, MAX_OPERANDS = 2 }; typedef struct OpcodeInfo { char mnemonic[MAX_MNEMONIC_SIZE]; Opcode opcode; int operands; } OpcodeInfo; OpcodeInfo opcodeTable[NOF_OPCODES]; intHashTable opcode_ht; void opcode_table_init( ); void opcode_table_done( ); OpcodeInfo *lookup_opcode( char *mnemonic );