Oh boy - I've literally just come out of Turbo Pascal 3.0A on a Z80 retro rebuild - I've hacked together some code to run a 7-segment clock/timer board I made for my Commodore 64 in about 1984.
https://twitter.com/linker3000/status/1071459121210290178