If I translate a copyrighted work into another language is the translated work under copyright?
In either case, without permission or a copyright exception (e.g., fair use) it is also a violation of the original copyright, either as a derivative work or a copy.
Translating ancient programs like this are unlikely to trigger a legal case, but I would not rule it out entirely in this day and age.