Write the opcodes to a hex file.