(reg_value, value_table)
return "[{}]".format(" ".join(flags))
Return a human readable string showing the flag states.
Return a human readable string showing the flag states.
Return a human readable string showing the flag states .
def flags_to_human(reg_value, value_table):
	"""Return a human readable string showing the flag states."""
	flags = []
	for i in value_table:
		# flag_str = Color.boldify(value_table[i].upper()) if reg_value & (1<<i) else value_table[i].lower()
		flag_str = f"{RED}{value_table[i].upper()}{RST}" if reg_value & (1<<i) else value_table[i].lower()
		flags.append(flag_str)
	return "[{}]".format(" ".join(flags))
def flags_to_human ( reg_value , value_table ) : flags = [ ] for i in value_table : # flag_str = Color.boldify(value_table[i].upper()) if reg_value & (1<<i) else value_table[i].lower() flag_str = f"{RED}{value_table[i].upper()}{RST}" if reg_value & ( 1 << i ) else value_table [ i ] . lower ( ) flags . append ( flag_str ) return "[{}]" . format ( " " . join ( flags ) )