I can see that this looks like what I am attempting to do with a SAP-1 that I am working on. I have purchase a 8051 microcontoller, to drive
the (3) 7 Segment displays that I want to use as an Output display.
I do not understand the programming language that you are using, but I would like to learn more about how to program this chip to display
an 8 bit binary input to a BCD output on the (3) 7 segment displays.