And it's been a while but I seem to recall one of the more difficult parts was the section of the BIOS that read "COPYRIGHT IBM". I'm pretty sure the IBM version of DOS read the BIOS and looked for that string and if it wasn't there it wouldn't load.
But since IBM didn't have an exclusive on DOS from Microsoft it was possible for the clone makers to come out with their own versions with subtle differences thus you had Compaq DOS, etc. After a bit MS produced generic versions branded by them.
Worse deal ever made until last week.