look for TTL a databook from texas instrumnets.
old technique to have digital control with AND OR NAND etc.
the 7400 series was famous for this
BCD is a code for display.
the byte is divided into nibble and each nibble is for one hewdisplay.
look in wiki