Given the hardware constraints software engineers had at the time, that code is a piece of art in terms of optimisations. We don't write like that anymore. Now days we optimise for readability and mintainability (rightfully so - optimize later).
Not many people now days can write a complete IDE which can run on a machine with 64 kilobytes of RAM... :)
I guess now, we're to some extent running on "it looks like a thing that would have required skill and determination in the bygone days, but now just requires $1,000, and the author had $1,000".
Huh? What is that attitude of HN that mocks people for trying new things. Do you know how much effort the author spent to do this? Just a prompt?
Do you also mock people for using chainsaw to make furniture instead of more basic tools?
But people act as if "well we got something that compiles down to the same binary, this must be the actual C source!" Welp. It couldn't be more different than the original source. In fact, it's probably even distracting if your goal is to reconstruct the original source. This is just AI slop in a form that you can't even easily recognize.
Not to mention the licensing aspect of all of this. One should be wary of Watcom because of its terrible license, even though it is technically Open Source.If as a consequence Watcom is kind of a minefield, I don't even know how to start describing this. The trenches at Verdun?
1. Understanding how the program works. But for this you need a good decompilation, not just "portable assembly in C"
2. Porting to a new platform. Once you have something that builds with a C compiler, you can rebuild it for a different platform, usually more performantly than running in an emulator. And it's often doable (if a lot of work) to also swap out graphics APIs, etc. But I'm not sure there's anyone who would care to run Borland DOS compilers on e.g. apple-aarch64, and DOSbox is more than good enough for anyone who does.
You can leave a model to crank on this for a couple of days and get something much closer to idiomatic source.
It will not be THE source but it will be readable source that produces the same bits.
If you want to do something useful instead of just whining, then reindent it and submit a PR instead of complaining about something that doesn't matter like white space.