News for hackers. Stuff that matters.
Re:Prince of Persia open-source port based on the DOS versio... by throwawaylinux on Tuesday November 23, 2021 @06:13AM (#29316511)
No, but it's possible to write a specification based on the disassembly, and then write an implementation based on the specification.

https://en.wikipedia.org/wiki/Clean_room_design

Apparently that may not be strictly required either, but it gives a good defense. I think I could disassemble a blob to figure out what the possible behaviors of a WinAPI call and then write my own implementation of those things.

Microsoft might bankrupt me before I won a court case, but there is nothing in copyright law as far as I know that says reading a copyright work forever contaminates your mind such that you would be incapable of creating a vaguely similar thing without infringing on it.

Re:Prince of Persia open-source port based on the DOS versio... by dotancohen on Tuesday November 23, 2021 @07:06AM (#29316871)

  > No, but it's possible to write a specification based on the
  > disassembly, and then write an implementation based on the specification.
Critically, the disassembly and spec should be done by one person, and the implementation by another.
Re:Prince of Persia open-source port based on the DOS versio... by skywal_l on Tuesday November 23, 2021 @08:46AM (#29317695)
Yes, that's what they mean by "clean room" implementation. The implementer should not be "polluted" by the previous implementation. This is what Microsoft did when they revert engineered CPM and created DOS.
Re:Prince of Persia open-source port based on the DOS versio... by teddyh on Tuesday November 23, 2021 @10:29AM (#29318920)
> This is what Microsoft did when they revert engineered CPM and created DOS.

Um, Microsoft bought (what was then called) 86-DOS outright from another company, and ported it to the 8088 CPU used by the original IBM PC.

Re:Prince of Persia open-source port based on the DOS versio... by illys on Tuesday November 23, 2021 @01:08PM (#29321033)
Right... But there is nearly (no?) work to port from 8086 to 8088. The work was to adapt to the underlying IBM system calls (BIOS) and to the specific wired electronics (video card, DMA, mass-storage media, clock, keyboard...).
Re:Prince of Persia open-source port based on the DOS versio... by lodovic on Tuesday November 23, 2021 @03:46PM (#29323271)
I think you mean Compaq who created a clean-room implementation of the IBM PC BIOS.