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. Mac System 7 Demo: http://jamesfriend.com.au/pce-js/ Windows 3.0 Demo: http://jamesfriend.com.au/pce-js/ibmpc-win/ 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.
Wow, awesome! For the Mac one with mouse support, you might want to add ".emscripten { cursor: none; }" to your stylesheet so the host cursor doesn't cover up the emulated one.
Run Windows 1.01 in your browser
51–60 of 93 posts
Re: Run Windows 1.01 in your browser
#52I tried to unmaximize a window by dragging the title bar like in Windows 7 or GNOME 3. I have no idea why I expected that to work.
Re: Run Windows 1.01 in your browser
#53There 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.
Re: Run Windows 1.01 in your browser
#54There 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.
Re: Run Windows 1.01 in your browser
#55Every time I see an emulator like this on HN, my mind is blown. Can someone explain to me and any other run-of-the-mill hackers reading this, how an emulator like this is made? I wouldn't even know where to start.
First you need to port x86(or any other) instruction set. This can also be done by compiling (part of)Bochs/PCE using emscripten. Then you need to port IO (floppy,HD etc.). Then monitor and graphics card. And if you really want to be cool there are hosts of other things to port like touchscreen, networking, USB etc.
Re: Run Windows 1.01 in your browser
#56the mouse tracking is fucked. it leaves the windows if i go to try and click the top right corner
Re: Run Windows 1.01 in your browser
#57Re: Run Windows 1.01 in your browser
#58Re: Run Windows 1.01 in your browser
#59It's funny how when I closed Windows and ended on the DOS prompt I mindlessly typed "win" & enter. Some habits never die I guess.