https://abelinagallo.blogspot.com/2022/08/hexadecimal-7-segment-display-truth.html
Hexadecimal 7 Segment Display Truth Table - Seven Segment Display With Microcontroller At89s52