The rules for defining physical attributes for memory-mapped displays are similar to those of PCDOS.
More:
Monochrome Attributes
Color Attributes