moved opcodes stuff into code.c and opcodes.c