Live data from Hacker News

Run Windows 1.01 in your browser

jsmachines.net

51–60 of 93 posts

Re: Run Windows 1.01 in your browser

#51

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.

Thanks for that, I'd assumed that would run afoul of some kind of click-jacking protection but fortunately it seems I was wrong :)

Re: Run Windows 1.01 in your browser

#53

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.

That'll probably impossible in the browser due to security reasons: otherwise misuse could trap the user on a website

Re: Run Windows 1.01 in your browser

#54

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.

That'll probably impossible in the browser due to security reasons: otherwise misuse could trap the user on a website

Re: Run Windows 1.01 in your browser

#55
post #29

Every 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.

[deleted]

Re: Run Windows 1.01 in your browser

#56
post #3

the mouse tracking is fucked. it leaves the windows if i go to try and click the top right corner

Yeah I had the same, I figured out it was more the acceleration that was the problem rather than the cursor movement itself...moving slower than usual meant I could use it without problems.
Post reply on HN