[TUHS] C from 1980 binaries

John Foust via TUHS tuhs at tuhs.org
Mon Nov 2 02:05:00 AEST 2026


At 07:08 AM 11/1/2026, Ralph Corderoy wrote:
>Assuming getLink() doesn't have side effects,
>line 18's getLink(r4) looks like it can be replaced with r3 given line 6.
>Is Claude deliberately rendering a duplicate call in the machine code?

I asked, and sent the longer reply in private email.  The short answer is
"The second getLink call is really in the machine code (two JSRs to getLink 
at 074556 and 074602 with the same argument, which V7 cc never merged), 
and the r3 is just the compiler parking the first result during the 
comparison, which the decompiler rendered as a register variable rather 
than folding it back into the if."

The code appears to be full of horrid "goto", too.

- John



More information about the TUHS mailing list