def build_code(codes_dict):
    """
    Builds a code based on a codes dictionary
    :param codes_dict: A dictionary with the code and whether it's flagged or not.
    :return: The full code
    """
    code = 0x00000000

    for value in codes_dict.values():
        if value[0]:
            code += value[1]

    return code