def METHOD_NAME(filename):
    f = open(filename, "wb")
    b = bytearray(2)
    for i in range(len(program)):
        inst = int(program[i], 16)
        b[0] = inst & 0xFF
        b[1] = (inst >> 8) & 0xFF
        f.write(b)
    f.close()