Hi guys i seem to recall there was a simply way to do this but i cant recall how

number is stored as 3 bits to represent 0 -7 value as part of a stored byte
i need display byte to be a bit representation

eg
stored bit0,1,2 = value 0 = display byte- all bits off
stored bit0,1,2 = value 1 = display byte- bit0 on ,display byte bits 1-7 off
stored bit0,1,2 = value 2 = display byte- bit1 on, display byte bit0,2-7 off
stored bit0,1,2 = value 3 = display byte- bit2 on, display byte bit0,1,3-7 off
stored bit0,1,2 = value 4 = display byte- bit3 on, display byte bit0-2,4-7 off
stored bit0,1,2 = value 5 = display byte- bit4 on, display byte bit0-3,5-7 off
stored bit0,1,2 = value 6 = display byte- bit5 on, display byte bit0-4,6-7 off
stored bit0,1,2 = value 7 = display byte- bit6 on, display byte bit0-5,7 off