BIOS Color Attribute is a 8 bit value where the low 4 bits represent the character color and the high…