lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
pastermil@sh.itjust.works to Open Source@lemmy.ml · 1 年前

Microsoft Just Released MS-DOS Source Code!

github.com

external-link
message-square
159
fedilink
  • cross-posted to:
  • [email protected]
824
external-link

Microsoft Just Released MS-DOS Source Code!

github.com

pastermil@sh.itjust.works to Open Source@lemmy.ml · 1 年前
message-square
159
fedilink
  • cross-posted to:
  • [email protected]
GitHub - microsoft/MS-DOS: The original sources of MS-DOS 1.25, 2.0, and 4.0 for reference purposes
github.com
external-link
The original sources of MS-DOS 1.25, 2.0, and 4.0 for reference purposes - microsoft/MS-DOS
alert-triangle
You must log in or register to comment.
  • herrcaptain@lemmy.ca
    link
    fedilink
    arrow-up
    254
    ·
    1 年前

    I love that they specify that they’re not accepting pull requests.

    • QuazarOmega@lemy.lol
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 年前

      Even funnier when it’s their own platform and it has been missing the feature to disable them for so long afaik

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    147
    ·
    1 年前

    The MS-DOS v1.25 and v2.0 files were originally shared at the Computer History Museum on March 25th, 2014 and are being (re)published in this repo to make them easier to find[.]

    • zarenki@lemmy.ml
      link
      fedilink
      English
      arrow-up
      131
      arrow-down
      1
      ·
      1 年前

      In 2014, MS-DOS 1.25 and 2.0 were released under a Microsoft shared-source license (Microsoft Research License) which forbids redistribution

      In 2018, both versions were published to GitHub and relicensed as MIT, making them properly open-source

      Today, MS-DOS 4.00 was added to that repo, also under MIT.

    • laughterlaughter@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 年前

      Oh.

  • fubarx@lemmy.ml
    link
    fedilink
    arrow-up
    142
    arrow-down
    15
    ·
    1 年前

    Ignore them. Send a pull request with the full source of Arch Linux.

    • deadbeef79000@lemmy.nz
      link
      fedilink
      arrow-up
      51
      ·
      edit-2
      1 年前

      Nah, just a giant compiled binary blob. That’s what all the cool hackers do these days.

      • gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 年前

        I’ll try a supply chain attack! That’s a good trick!

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      1 年前

      dumb question maybe, but where is the full source of arch Linux? My understanding is that its just vanilla Linux that uses the pacman package manager.

      Am I wrong in saying the pacman is the Arch source? Or is there more going on in the tar ball?

      • Aatube@kbin.melroy.org
        link
        fedilink
        arrow-up
        8
        ·
        1 年前

        https://archlinux.org/packages/core/any/base/

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          1 年前

          Cheers! It looks like this is then the PKGBUILD

          https://gitlab.archlinux.org/archlinux/packaging/packages/base/-/blob/main/PKGBUILD?ref_type=heads

          In which case, there are no packages defined there which are Arch specific except pacman. So… pacman is the Arch source, right?

          • Aatube@kbin.melroy.org
            link
            fedilink
            arrow-up
            7
            ·
            edit-2
            1 年前

            A lot of these packages have Arch-specific modifications. For example, filesystem doesn’t even have a non-Arch upstream as it defines the filesystem layout. That PKGBUILD and everything it depends on is the Arch source. Distributions are defined by which packages they include.

            • tetris11@lemmy.ml
              link
              fedilink
              arrow-up
              3
              ·
              1 年前

              ah, thanks for the clarification!

    • Aatube@kbin.melroy.org
      link
      fedilink
      arrow-up
      6
      ·
      1 年前

      is archived

      • ylai@lemmy.ml
        link
        fedilink
        arrow-up
        17
        arrow-down
        1
        ·
        1 年前

        There is even a sentence in README.md that makes it explicit:

        The source files in this repo are for historical reference and will be kept static, so please don’t send Pull Requests suggesting any modifications to the source files […]

        • Captain Aggravated@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          8
          ·
          1 年前

          Somebody fork it then?

        • laughterlaughter@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 年前

          Time to fork!

  • viking@infosec.pub
    link
    fedilink
    arrow-up
    97
    arrow-down
    1
    ·
    1 年前

    LOL, some of the comments in the source are gold.

    https://github.com/microsoft/MS-DOS/blob/main/v4.0/src/DOS/ABORT.ASM

    Note:  We do need to explicitly close FCBs.  Reasons are as follows:  If we
    ; are running in the no-sharing no-network environment, we are simulating the
    ; 2.0 world and thus if the user doesn't close the file, that is his problem
    ; BUT...  the cache remains in a state with garbage that may be reused by the
    ; next process.  We scan the set and blast the ref counts of the FCBs we own.
    ;
    ; If sharing is loaded, then the following call to close process will
    ; correctly close all FCBs.  We will then need to walk the list AFTER here.
    ;
    ; Finally, the following call to NET_Abort will cause an EOP to be sent to all
    ; known network resources.  These resources are then responsible for cleaning
    ; up after this process.
    ;
    ; Sleazy, eh?~
    
    • bane_killgrind@lemmy.ml
      link
      fedilink
      English
      arrow-up
      19
      arrow-down
      3
      ·
      1 年前

      This is what people mean when they say hostile to users damn wow

      • interdimensionalmeme@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        I imagine that’s already a compatibility thing. If the os closed the file handles at that point but the program was expecting to do that, it might crash.

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    87
    arrow-down
    3
    ·
    1 年前

    i remember writing .bat files and pretending they were really fancy update scripts when i was like ten they did nothing but it was still fun :)

    • Ms. ArmoredThirteen@lemmy.ml
      link
      fedilink
      arrow-up
      59
      ·
      1 年前

      Like half of my job is writing .bat files to automate stuff locally and not tell my boss that all I do anymore is double click the right things in the right order…

      • viking@infosec.pub
        link
        fedilink
        arrow-up
        24
        arrow-down
        1
        ·
        1 年前

        You can put in a timeout command at the end, and then call the next .bat file.

        For example “TIMEOUT /T 60” waits for 60 seconds before resuming, or you can override it by pressing any key.

        So if you know how long the wait time between scripts is, just write a master.bat and call them in order, with adequate waiting time in between.

        • Tja@programming.dev
          link
          fedilink
          arrow-up
          17
          ·
          1 年前

          This guy is a master bat-er

        • DefederateLemmyMl@feddit.nl
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

          Or just use the @CALL command to call them in order without having to guesstimate how long they run.

        • Ms. ArmoredThirteen@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          1 年前

          Okay so the dumb part is a lot of this is me abstracting away our complex build system. I’ve basically bubble-gummed a dedicated build system in top of it for only the tasks I do. At a certain point if I start adding configurations or timing I might as well just wrap it in gradle or something. But the system that I’m calling is already their attempt at simplifying another build system that’s underneath it that was written by the old guard using arcane sorcery. The whole thing is a mess

      • SnipingNinja@slrpnk.net
        link
        fedilink
        arrow-up
        17
        ·
        1 年前

        Next step, bind them to unused keys on your keyboard and press them in the right order

        • ebits21@lemmy.ca
          link
          fedilink
          English
          arrow-up
          10
          ·
          1 年前

          I suggest Autohotkey ;)

          • ☂️-@lemmy.ml
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            2 个月前

            deleted by creator

            • WhiskyTangoFoxtrot@lemmy.world
              link
              fedilink
              arrow-up
              6
              ·
              1 年前

              Just set up a drinking bird to set off AHK.

              • ☂️-@lemmy.ml
                link
                fedilink
                arrow-up
                5
                ·
                edit-2
                2 个月前

                deleted by creator

                • ShieldGengar@sh.itjust.works
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 年前

                  Wow a promotion; fancy!

        • A Wild Mimic appears!@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          6
          ·
          1 年前

          i propose to create a menu in which you can define what batchfiles to run in what order. its been a while since i worked with batch files, but if memory serves right, that should be doable, no?

          • psud@aussie.zone
            link
            fedilink
            arrow-up
            1
            ·
            1 年前

            Yes. You could make menus and capture keystrokes in batch files

            My autoexec.bat back in windows 3 asked if you wanted windows or a command line (most games didn’t like the memory overhead of being loaded from windows)

        • targetx@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          1 年前

          I’d recommend scheduled tasks instead. Why be involved at all? :-)

      • WhiskyTangoFoxtrot@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        1 年前

        Do you ever list your job title as Batman?

        • katy ✨@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          3
          ·
          1 年前

          only if they keep the it room as dark as possible and whenever someone walks in for help they jump up onto the desk with a flashlight and yell "I’M BATMAN’ while wearing a cape and underpants.

          • nycki@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 年前

            Tra-la-la!

            • caseyweederman@lemmy.ca
              link
              fedilink
              arrow-up
              2
              ·
              1 年前

              50% hero. 100% cotton.

          • Ms. ArmoredThirteen@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            1 年前

            Well I work from home so I do keep my room dark, I like to have a blanket over my shoulders, it’s not uncommon for me to just be in my underwear… Honestly I’m most of the way there

        • kingthrillgore@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          1 年前

          No, because the IRS wants to tax Batman

      • CatTrickery@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        11
        ·
        1 年前

        I had a job like that and powershell was a godsend. I let it slip when I accidentally set the multiplier for the delay randomiser too low and it did a months work in a morning. I ended up writing a guide for the others there when I left but sadly everyone but me had computers that supported newer versions of Windows where the scripts ended up broken. They asked me to come back and update it the Monday after I left. I asked if they would pay me to do it. They said no. Then I said no.

        • Ms. ArmoredThirteen@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          1 年前

          This is part of why I still have manual kickoffs for mine. Never need to worry about work getting done while I’m away or getting done suspiciously fast. Also they should have paid you lol, the dingdongs. Would cost a lot more just in work lost having someone else spend time deciphering and fixing it. They could always get someone else up to speed with the system after it is fixed by you so there’s little or no down time

      • DefederateLemmyMl@feddit.nl
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 年前

      • AMPher@lemmy.dbzer0.com
        link
        fedilink
        Italiano
        arrow-up
        1
        ·
        5 个月前

        Me but with pythonautogui

    • KISSmyOSFeddit@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      1 年前

      They were important to boot games that needed most of your limited memory.

      • doublejay1999@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        1 年前

        640k should be enough for anybody

        • A Wild Mimic appears!@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          6
          ·
          1 年前

          tell that my mouse driver, the soundblaster driver and the cdrom driver fighting over every single byte of that precious ram 😩

        • laughterlaughter@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

          Bill Gates denied saying this, by the way.

      • Klear@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 年前

        Or to play the demo made by the warez group that cracked it before launching the game.

    • chiliedogg@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 年前

      I still use bat h files and the system scheduler to automate a shocking amount of my job.

    • laughterlaughter@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      10
      ·
      1 年前

      Please use punctuation.

      • katy ✨@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        19
        arrow-down
        2
        ·
        1 年前

        punctuation is a scam created by the shadow government

        • billgamesh@lemmy.ml
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          1 年前

          yeah punctuations is silly who cares

          • Eldritch@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 年前

            Typicalcommingfromashillforbigwhitespace!

          • laughterlaughter@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 年前

            It isn’t. There’s a reason for it.

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    77
    ·
    1 年前

    I guess we now have a timeframe in which to expect the release of Windows.

    • onlinepersona@programming.dev
      link
      fedilink
      English
      arrow-up
      52
      arrow-down
      1
      ·
      1 年前

      30+ years after death. Better than 70+ years of copyright 🤷

      Anti Commercial-AI license

  • blindbunny@lemmy.ml
    link
    fedilink
    English
    arrow-up
    71
    arrow-down
    9
    ·
    edit-2
    1 年前

    FreeDos is better anyways

    • Björn Tantau@swg-empire.de
      link
      fedilink
      arrow-up
      18
      ·
      1 年前

      I wonder if this is of any use to them or if they’re already too far ahead.

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        28
        ·
        1 年前

        To my knowledge, FreeDOS has been a fairly complete implementation of DOS for a very long time, so this is probably not useful to them.

      • blindbunny@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 年前

        Good question lmk if you find the answer. I just use FreeDos to play Chex quest

      • psud@aussie.zone
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        1 年前

        They couldn’t use it. MS DOS is released under a licence that restricts redistribution

        • explodicle@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 年前

          It says here you can modify and distribute: https://github.com/Microsoft/MS-DOS/blob/main/LICENSE

        • Björn Tantau@swg-empire.de
          link
          fedilink
          Esperanto
          arrow-up
          3
          ·
          1 年前

          They changed it to MIT. You can basically do what you want with it.

          • psud@aussie.zone
            link
            fedilink
            arrow-up
            1
            ·
            1 年前

            Neat!

    • space@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      1 年前

      Sure, but it’s still really interesting from a historic point of view.

  • Zerush@lemmy.ml
    link
    fedilink
    arrow-up
    53
    arrow-down
    1
    ·
    1 年前

    MS-DOS, Source public available on March 25 2014 with MS Research License, released with as Free Software MIT license in 2018, this yer released as Open Source MS-DOS 4.0. Anyway, the Source code was available since 2014, only different licenses since then.

  • redcalcium@lemmy.institute
    link
    fedilink
    arrow-up
    36
    ·
    1 年前

    Take that FreeDOS!

    • Tja@programming.dev
      link
      fedilink
      arrow-up
      16
      ·
      1 年前

      Look at me, I AM FREE DOS now

    • darth_tiktaalik@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 年前

      Pretty soon they’ll need to change the name to HipsterDOS.

      FreeDOS before it was cool.

  • JustMarkov@lemmy.ml
    link
    fedilink
    arrow-up
    34
    ·
    edit-2
    8 个月前

    deleted by creator

    • GolfNovemberUniform@lemmy.ml
      link
      fedilink
      arrow-up
      15
      arrow-down
      3
      ·
      1 年前

      Probably Microsoft is trying to “save” some of its reputation after adding ads to Windows 11 one more time

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      1 年前

      They found a new 0-day exploit

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 年前

      They probably only got clearance from their lawyers (or IBM’s lawyers) just now.

      A lot of proprietary software includes bits from other proprietary software that they don’t have the rights to open-source. And untangling and removing those bits takes time and effort.

  • moon@lemmy.ml
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    1 年前

    What’s the use case that would upset Microsoft the most?

    • Samsy@lemmy.ml
      link
      fedilink
      arrow-up
      98
      arrow-down
      1
      ·
      1 年前

      Idk, maybe fork it under the name MS-DOSNT

      • Murdoc@sh.itjust.works
        link
        fedilink
        arrow-up
        12
        arrow-down
        5
        ·
        1 年前

        😆👏👍

    • Godort@lemm.ee
      link
      fedilink
      arrow-up
      7
      ·
      1 年前

      Use it to program an functional DOS emulator for MacOS 8?

  • SuperNerd@programming.dev
    link
    fedilink
    arrow-up
    32
    ·
    1 年前

    So cool, thanks. As a kid I spent so much time in DEBUG, stepping through DOS’s executables, and especially the Interrupt handlers. It’s so neat to see the actual source code-- way easier to read and follow. I didn’t know it was all written in assembly, from within Debug it sometimes seemed so messy and convoluted that I just assumed more was written in C.

  • Omega_Jimes@lemmy.ca
    link
    fedilink
    arrow-up
    33
    arrow-down
    1
    ·
    1 年前

    Look at them, embracing open source like this, how wonderful.

    • JasonDJ@lemmy.zip
      link
      fedilink
      arrow-up
      38
      arrow-down
      1
      ·
      1 年前

      I’m sure the only reason why they waited this long is that they needed to make sure it’s old enough that the companies they stole code from can’t sue.

    • MacN'Cheezus@lemmy.today
      link
      fedilink
      English
      arrow-up
      14
      ·
      1 年前

      Can’t wait for the OSS community to fork it and build some cool shit on top of this /s

      • Duamerthrax@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 年前

        Well, this should be incredibly useful for Dosbox and improving playability of retro games, right?

        • MacN'Cheezus@lemmy.today
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 年前

          Perhaps, if there are some very specific compatibility issues that haven’t been solved yet.

          That said, MS-DOS 4 isn’t even the most recent version, the last one was 6.22 to my knowledge, and IIRC a lot of games tended to require at least version 5 or 6.

      • asudox@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        deleted by creator

        • ProgrammingSocks@pawb.social
          link
          fedilink
          arrow-up
          1
          ·
          1 年前

          2 things, the project exists and is called ReactOS. 2nd, the kernel in the versions of Windows anyone thinks about is the NT kernel which they will never release to be open source. The NT Kernel was built specifically so that they didn’t have to use DOS to make Windows work.

    • AnIndefiniteArticle@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      ·
      1 年前

      deleted by creator

      • h3rm17@sh.itjust.works
        link
        fedilink
        arrow-up
        8
        ·
        1 年前

        They sure are extinguishing any posible fear I may have about the absolutely destroying anything beautiful.

  • Ricky Rigatoni@lemm.ee
    link
    fedilink
    arrow-up
    31
    arrow-down
    1
    ·
    1 年前

    when rust

    • Darken@reddthat.com
      link
      fedilink
      arrow-up
      3
      ·
      1 年前

      deleted by creator

      • figaro@lemdro.id
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 年前

        Question - did you delete your comment less than an hour after posting it? Or am I seeing that as some kind of glitch in the Sync app?

        To me, your comment just says “deleted by creator.”

        • milicent_bystandr@lemm.ee
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

          He left it in moist air and it rusted

        • Darken@reddthat.com
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          1 年前

          deleted by creator

          • figaro@lemdro.id
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 年前

            This one lasted at least 11 hours ¯⁠\⁠(⁠◉°◉⁠)⁠/⁠¯

            Good decision in the long run I suppose

  • PowerCrazy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 年前

    Where is the ctrl+alt+del function defined? I just want to see what made that sequence work. I’d also be interested in where ctrl+break is defined.

    • mkwt@lemmy.world
      link
      fedilink
      arrow-up
      36
      ·
      1 年前

      Ctrl+alt+delete was a separate interrupt line direct from the keyboard. That is, when you pressed the three keys, the interrupt signal was asserted, causing the CPU to jump to the interrupt service routine, which should be in the source code package.

      • billgamesh@lemmy.ml
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        1 年前

        is it in the source code, or is it just passed right to BIOS?

        • uid0gid0@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          1 年前

          It was originally a BIOS interrupt, but eventually got captured by the OS. Here’s Dave Bradley talking about inventing it https://m.youtube.com/watch?v=K_lg7w8gAXQ

          • Telodzrum@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 年前

            Bill does not think that is funny.

Open Source@lemmy.ml

opensource@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

  • Open Source Initiative
  • Free Software Foundation
  • Electronic Frontier Foundation
  • Software Freedom Conservancy
  • It’s FOSS
  • Android FOSS Apps Megathread

Rules

  • Posts must be relevant to the open source ideology
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community icon from opensource.org, but we are not affiliated with them.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 463 users / day
  • 1.72K users / week
  • 3.35K users / month
  • 10.5K users / 6 months
  • 2 local subscribers
  • 38.7K subscribers
  • 2.3K Posts
  • 37K Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • kevincox@lemmy.ml
  • CrypticCoffee@lemmy.ml
    cake
  • Lettuce eat lettuce@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org