Slashdot Mirror


DOS Emulation Arrives For the Raspberry Pi

An anonymous reader writes "Homebrew Coder Pate has released a DOS Emulator for the Raspberry Pi. Originally released for the Nintendo DS and Android, the emulator currently can emulate a CPU: 80486 processor, including the protected mode features (for running DOS4GW games) but without virtual memory support. The emulation runs at a speed around that of a 20MHz 80486 (which equals a 40MHz 80386) machine. It has support for Super VGA graphics, Soundblaster 2.0, Memory, USB keyboard and mouse. Perfect for playing old classics such as Doom, Duke Nukem 3D and Theme Park."

28 of 189 comments (clear)

  1. never understood the appeal by Custard+Horse · · Score: 2

    Other than as a proof of concept is there any fundamental use for this facility?

    Does anybody want to play Doom like it was 1993?

    1. Re:never understood the appeal by Narcocide · · Score: 5, Insightful

      Judge not, lest ye be judged.

    2. Re:never understood the appeal by h4rr4r · · Score: 3

      People still play DOOM, I still play DOOM2 online every once in a while.

      I have SCUMMVM installed on my smartphone so I can play games of similar vintage.

      I guess it is something us older folks do. Kids these days, off my lawn, etc.

    3. Re:never understood the appeal by acariquara · · Score: 5, Insightful

      Other than as a proof of concept is there any fundamental use for this facility?

      Does anybody want to play Doom like it was 1993?

      Yes.

      --
      Dear aunt, let's set so double the killer delete select all
    4. Re:never understood the appeal by h4rr4r · · Score: 3, Insightful

      Yes, Most people are using some other DOOM engine with original WADs.

      What do you mean willing? Is DOOM now a form of punishment?

    5. Re:never understood the appeal by drinkypoo · · Score: 2

      Other than as a proof of concept is there any fundamental use for this facility?
      Does anybody want to play Doom like it was 1993?

      It's really not primarily about games which have been remade and the remakes given away. Who is trying to emulate to play Star Control II any more, right? But there's lots of games which haven't been remade and yet somehow also haven't been superseded. You can find scads of them on gog.com, for very little money.

      For my money I'd rather buy Playstation games and slap them into an emulator. My phone (Xperia Play, bought used because it was cheap) came with Crash Bandicoot and some clever folks figured out how to load other game images into that emulator, and most of them work, so I don't even have to pay extra to play my PSX games on my phone. Even if I pay for the emulator to cover the other games it's only about five bucks. But on the other hand, there's a load of turn-based DOS games out there very cheap, and they are often a good match for a handheld because they wait for you, so you can play them while your attention is divided.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    6. Re:never understood the appeal by Hatta · · Score: 4, Interesting

      I'd rather play DOOM like it's 2008. Native, high res, 3D accelerated DOOM will be far nicer than emulated 320x240 at 25fps, which is what you'd expect from a 486. I'd like to see the output from doom -timedemo demo3 on this thing.

      --
      Give me Classic Slashdot or give me death!
    7. Re:never understood the appeal by Hatta · · Score: 3, Informative

      What you really want is to just run DOOM v1.9 with the command line option '-timedemo demo3'. That will give you a pair of numbers that is easily converted into average FPS. There's even a nice list of machines and their results in this benchmark.

      You'll notice that performance is also dependent on the amount of cache available, and the type of video card. This is why it's hard to do simple CPU benchmarks and extrapolate that to game performance. A 100mhz 486 with an ISA video card performs worse than a 66mhz 486 with a VLB video card. How this relates to performance in emulation is anyones guess.

      --
      Give me Classic Slashdot or give me death!
    8. Re:never understood the appeal by MightyYar · · Score: 2

      Does anybody want to play Doom like it was 1993?

      I don't have any real sentimental attachment to Doom, but I did pay money to have R-Type on my Android phone/tablet.

      --
      W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
    9. Re:never understood the appeal by niko9 · · Score: 3, Informative

      Other than as a proof of concept is there any fundamental use for this facility?

      Does anybody want to play Doom like it was 1993?

      I can think of one: DHPOS Link: http://en.wikipedia.org/wiki/DHPOS

      It would make one hell of a dirt cheap advanced POS for the small business owner. Especially those in developing countries. DHPOS website has people using this software all of the world where they can't afford expensive monthly support costs. Link: http://keyhut.com/pos.htm

      With DOS and just DHPOS installed your employees can't mess with we browsing, etc.

    10. Re:never understood the appeal by petermgreen · · Score: 3, Informative

      BTW there is no need for emulation to program in pascal. The version of freepascal in the raspbian repo works fine.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    11. Re:never understood the appeal by larry+bagina · · Score: 2

      I spent many hours this weekend playing Colonization (1994, $3 from GOG). Fullscreen with scanline effects.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

  2. DOSBox? by Anonymous Coward · · Score: 5, Interesting

    Can someone explain why you wouldn't be able to run DOSBox? Isn't this reinventing the wheel?

    1. Re:DOSBox? by h4rr4r · · Score: 2

      Dosbox is not that fast, and it targets pretty generic ARM so I am almost certain this was done to get usable performance in a DOS emulator.

    2. Re:DOSBox? by DarkOx · · Score: 4, Informative

      DosBox works pretty well on ARM. It comes with lots of baggage though. You have X server and everything else sucking up the PI's limited memory (granted most Dos games and applications are probably expecting 16MB top to work with but...) It looks like this runs on the metal; so its probably faster.

      If you don't need or want to do any multitasking and you want the very best retro-gaming experience this might be a nice choice. That said yes it a bit of a wheel re-advent; but so was DosBox, DosEMU existed for what a decade before it? Nothing wrong with having more options.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    3. Re:DOSBox? by BobNET · · Score: 4, Interesting

      There's patches out there for DOSBox's dynamic recompiler, but they're for ARMv4 and I'm not sure how effective they are on the Pi's processor. My unscientific measurements put it somewhere around a low-end 386: Doom runs but isn't playable, while EGA sidescrollers are almost perfect with the occasional stutter. I haven't tried Wolf3D yet, though.

      (I should point out this is in X on SlackwareARM which is probably one of the worst environments one could use for this sort of thing.)

  3. Home of the Underdogs is your friend. by F34nor · · Score: 2

    Like dungeon crawlers? Try Ultima Underworld!
    Like Mass Effect? Try Starcontrol 2!
    Like Sydicate? Try Sydicate!
    Like BioShock? Try System Shock!

  4. Re:Gaming is cool and all, by Gordonjcp · · Score: 2

    My main desktop machine for poking about with sound is a Dell Optiplex 755 with a "laptop-style" floppy drive. The Intel floppy controller works really well for weirdass formats like the Ensoniq Mirage with its mixed sector lengths, and disks like the Roland S-series ones where the low-level format is "normal" but the filesystem is weird.

    What old musical equipment do you need to create floppies for?

  5. Re:What about DosBOX ? by jones_supa · · Score: 3, Insightful

    Okay, this "now on the Raspberry Pi" craze is getting really ridiculous.

    No, it isn't. Let's have it become a stable platform with a flourishing software and hardware ecosystem.

  6. Re:What about DosBOX ? by DarkOx · · Score: 2

    No, it isn't. Let's have it become a stable platform with a flourishing software and hardware ecosystem.

    You can run all the popular Linux distributions on it; with a pretty full Desktop experience (all the packages are there performance is generally pretty good). So I think we are there.

    The trouble is the ARM world is evolving pretty fast. The Raspberry Pi is so much faster than the Kirkwood based stuff that was filling the same niche spaces before it. I am really glad that $35 + a little extra for some storage and a power supply gets you a computer that is "good enough for most projects" that is great.

    I don't want to see things get so tied to the RasPi that big FOSS projects get to tightly coupled to it. Because just like the Pi has replaced the Kirkwood stuffs; someone is going to put together an even more powerful, even more efficient just as cheap ARM SoC together sooner rather than later. I'd like to see the community benefit as greatly.

    --
    Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  7. Re:As if the Pi wasn't obsolete enough by jedidiah · · Score: 2

    As a Unix user, I expect to be able to run any software I own on any microprocessor architecture I can manage to get my hands on. That's just the way that Unix is supposed to work.

    If I get a PI, then I expect it to run all of my non-commercial software that has source code available for it.

    Just comes with the territory.

    mysql, apache, mate, firefox, slrn, mame, mythtv, gimp, sane, libreoffice, xbill... pretty much everything except my Loki and Steam games.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  8. Re:"A lot"? by drinkypoo · · Score: 4, Insightful

    Yes, a lot of people enjoy playing retro DOS games, especially LucasArts adventure games.

    If your definition of "a lot" is a number less than 1000 then sure.

    With only 1000 users, gog.com could not exist. AFAICT old dos games represent most of their business.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  9. Re:"A lot"? by RepoOne · · Score: 5, Informative

    -VOGONS
    -GoG
    -4chan /vr/ (retro games)
    -Abandonia

    All active DOS gaming communities.

    There are certainly more than 1000 people playing DOS games today.

  10. Re:What about DosBOX ? by ctid · · Score: 4, Insightful

    You can get a perfectly good little Linux running computer for $50 and you're whining about it? The Raspberry Pi Foundation was set up with the goal of getting more children to do programming at home and in school. That is their purpose. The board is as cheap as it is partly because Broadcom are supporting the initiative. I don't know what you mean by "the device doesn't work right". Of course it works right. Hundreds of thousands of people are using them.

    --
    Reality is defined by the maddest person in the room
  11. SDL ; DOSEMU by DrYak · · Score: 5, Interesting

    You have X server and everything else sucking up the PI's limited memory

    As far as I know, DOSBOX it self uses SDL (for portability). So instead of going after the whole X server, it would be possible to use a lighter SDL backend (framebuffer device, etc.) to avoid needing the whole X running.

    That said yes it a bit of a wheel re-advent; but so was DosBox, DosEMU existed for what a decade before it?

    Unlike what the name might suggest, DosEmu isn't an emulator. It only provides DOS APIs (mainly BIOS, and a few I/O ports for specific hardware that was programmed that way). The code itself runs natively on the CPU. Thus it requires a CPU which is able to run 16-bits x86 code (so its limited to 32bits Intel/AMD processors, because they have a "Virtual 86" mode to run 16-bits code alongside 32-bits. It does not even work on 64 bits processors, as there is no "Virtual 86" mode to run 16-bits code. Once the processor enters 64 bits mode, the "hardware virtual box" offered by Virtual 86 isn't here anymore).
    It's close to the idea of Wine, it's very similar to the dos box of Windows (That's the same reason that the dos box got dropped out of the 64bits flavours of windows - their dos box also relies on Virtual 86 to provide the virtual sand box to run 16 bits code in it).

    DosBox, on the other hand, isn't juse an API interface, it's a full virtual box emulating a complete PC. It does emulate the CPU too (like any other emulator - for exemple like a GameBoy emulator) and thus can run on anything on which you can compile it.
    It also support dynamic recompiling, so it gets good performance for architectures it can target (currently: the x86 family, and ARMv4)

    So they didn't really re-invent the wheel, they mostly solved different fundamental problems. That's why DosBox happened.

    But, where we can criticise is that DosBox came with its own set of code to emulate the peripherals. DosBox and DosEmu could have shared much more (in terms of sound emulation for example) but each followed its way.

    In this context, again - some of this project does make sense (they target a different CPU meaning the code could be better optimised for the RPi) but they'll have to reinvent the other parts. Thus prix86 emulates far less different options for audio (only FM + stereo digital) than dosbox (which in addition supported GUS-like wavetable synthesis, and MT-32-like MIDI).

    Nothing wrong with having more options.

    Well, they could have re-used some of the peripheral emulation of DosBox. On the other hand this might be power hungry for the small RPi (MT-32 is quite complex to emulate, and DosBox's OPL-FM is unoptimised and designed for fidelity rather than speed).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  12. Re:What about DosBOX ? by MessageApprovalMan · · Score: 2

    You can do anything with Raspberry Pi...
    Anything at all.
    The only limit is yourself!

    The infinite is possible with Raspberry Pi.
    The unattainable is unknown with Raspberry Pi.

    Welcome to Raspberry Pi.
    This is Raspberry Pi... welcome!

    --
    I'm Message Approval Man, and I approve this message.
  13. Stunts! by KPexEA · · Score: 2

    Cool, I wrote Stunts on a 16mhz 386 so this should be powerful enough to play it.

  14. Re:Still a niche by thegarbz · · Score: 2

    I'm not sure I know a single person I interact with face-to-face who has even booted up DOS for recreational purposes in the last 10 years.

    Have you met me? You probably would not know that I play some retro games at times too. It's not exactly a fantastic conversation piece. But just because I don't shout from the rooftops that I have DOSBox installed with quite a library doesn't mean I don't do it.

    Maybe you should ask some of the people you interact with face-to-face. You may be surprised.