Logic Table for MSBFirst.  Most Significant Bit is H or DP.  It would be the last bit and you do them in reverse order like the table.

H-E is the First Bit
D-A is the Second Bit

First Bit = 8*H + 4*G + 2*F + 1*E
Second Bit= 8*D + 4*C + 2*B + 1*A

It is done in Hex:  0-9 are just 0-9.   10 is A, 11 is B, 12 is C, 13 is D, 14 is E, 15 is F.