The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: sinsi on April 26, 2024, 06:57:23 PM

Title: MS-DOS source code
Post by: sinsi on April 26, 2024, 06:57:23 PM
Thanks to Ali.Z at the FASM board :thumbsup:

MS-DOS v1.25, v2.0, v4.0 Source Code (https://github.com/microsoft/MS-DOS/tree/main)
Title: Re: MS-DOS source code
Post by: _japheth on April 26, 2024, 08:59:56 PM
Thanks for info!

The package also contains the tools needed to create the binaries.

There's MS C 5.1 and Masm 5.1, very nice little programs to create 16-bit real-mode programs, supporting small, medium, compact, large and huge memory models. Super cool!

The source even includes EMM386 and SMARTDRV!!!
Title: Re: MS-DOS source code
Post by: NoCforMe on April 27, 2024, 06:03:03 AM
I loves some of the comments in the code, which tell us more than even the code itself:

;   Rev 3.1 MarkZ   3.1 in label due to vagaries of SYSing to IBM drive D's
;            This resulted in the BPB being off by 1.  So we now trust
;            2.0 and 3.1 boot sectors and disbelieve 3.0.

Shows some of the intricacies of the problems the programmers were faced with back in the day.