As there seems to be a lot of interest in emulators in the browser, here's my effort:
I ported an emulator for classic Mac and IBM PC to the browser.<p>Mac System 7 Demo: <a href="http://jamesfriend.com.au/pce-js/" rel="nofollow">http://jamesfriend.com.au/pce-js/</a><p>Windows 3.0 Demo: <a href="http://jamesfriend.com.au/pce-js/ibmpc-win/" rel="nofollow">http://jamesfriend.com.au/pce-js/ibmpc-win/</a><p>IBM PC doesn't have mouse support... Yet. For Mac OS it's writing the mouse position directly into memory, but I've yet to add that hack for Windows.
I am really enjoying a lot of the retro things being posted recently. Sadly, they miss out some of the details. Like Elite being playable at 4 MHz, but really hard at 25 MHz, because that's how clocks worked then, and that's what the turbo button did. (It was a de-turbo button, turning your machine into a slow machine for compatibility. If it was connected, that is.)<p>And this makes me wonder about the Wayback machine. I can retrieve an old web page, but can I recreate the experience of posting to that site? Is anyone archiving the various social network sites code, so that the Future People can recreate the experience of Friendster or Facebook or Myspace? Or are the Future People going to have to guess by looking at screenshots and videos?<p>One of the first (perhaps the first?) commercial games for Windows was "Balance of Power". I think it either came with a weird runtime version of Win 1.0, or a voucher to get it, for people running dos.<p><a href="http://theodor.lauppert.ws/games/bop.htm" rel="nofollow">http://theodor.lauppert.ws/games/bop.htm</a>
>><machine id="ibm5160" class="pcjs" border="1" width="980px" pos="center" style="background-color:#FAEBD7"><p>Tag of the future
Every time I see an emulator like this on HN, my mind is blown.<p>Can someone explain to me and any other run-of-the-mill hackers reading this, how an emulator like this is made?<p>I wouldn't even know where to start.
The first time I ran this something went wrong I somehow didn't manage to even boot in to windows but found myself at the command line, with only the DOS floppy disks available.<p>The true Windows 1.01 experience.
All these features, and Reversi!
<a href="http://www.youtube.com/watch?v=tGvHNNOLnCk" rel="nofollow">http://www.youtube.com/watch?v=tGvHNNOLnCk</a>
Even better, Zork: <a href="http://jsmachines.net/disks/pc/games/infocom/zork1/" rel="nofollow">http://jsmachines.net/disks/pc/games/infocom/zork1/</a><p>And it appears to save your state between runs, which is nice.
After Bellard's JSLinux, it was just about time till more OS will be ported to JS.<p><a href="http://bellard.org/jslinux/" rel="nofollow">http://bellard.org/jslinux/</a>
As someone who really enjoys the history of computing, this is awesome! I don't think I've ever had a chance to play with Win 1 and probably wouldn't have gone through the trouble of getting it running myself. This and others like it would be neat for the Computer History Museum to have on its site.
I can't seem to successfully reset the calculator after a divide by zero.<p>It's funny how when I closed Windows and ended on the DOS prompt I mindlessly typed "win" & enter. Some habits never die I guess.
Windows 1.01 feels much closer to Mac Classic than Windows 3.1 does. (Button appearance, close button on left, menus must be held down to stay open, "Get Info" instead of "Properties".)
Wow, it had been a long time since I'd played DONKEY.BAS. <a href="http://jsmachines.net/demos/pc/donkey/" rel="nofollow">http://jsmachines.net/demos/pc/donkey/</a>
Interesting to see Helvetica ("Helv") in Windows 1.0 Write. According to a quick Wikipedia, Arial was only introduced with TrueType in Windows 3.x.
There is some issue with the mouse. When I click on terminal.exe and try to click on "File", the mouse is coming out of the emulator. You would probably want to create an interface like a VM, where the mouse comes out of the emulator only when you press some combination of keys.