|
|
|
|
|
by nradov
830 days ago
|
|
MS-DOS was inspired by CP/M to an extent, but not directly based on it. The device handling, BIOS functions, and command line were similar. When IBM first developed the PC they needed an OS. At first they tried to license CP/M from Digital Research since it already existed with many applications available. But when DR fumbled the business negotiations, Microsoft stepped in and offered IBM favorable terms for MS-DOS. It wasn't exactly compatible with CP/M, but close enough that the transition was easy for users and developers. |
|
https://en.wikipedia.org/wiki/File_Control_Block
This block would contain the command-line arguments, and have space for working with files (via FindFirst and FindNext), using the same globbing patterns as CP/M supported.
Of course things changed when MS-DOS got support for subdirectories, and later int21 functions expanded filesystem support. Later still .exe files became more dominant as they could be larger than 64k (minus PSP).