nepx / halfix

x86 PC emulator that runs both natively and in the browser, via WebAssembly
https://nepx.github.io/halfix-demo/
GNU General Public License v3.0
682 stars 88 forks source link

Can't increase ram? (192mb limit on browser) #36

Open wearyexcellance opened 1 year ago

wearyexcellance commented 1 year ago

I get an error when I try to run Windows XP on the browser when I increase the ram. Is there any way to make ram reach 1GB for example? Thanks in advance, this is an amazing project

nepx commented 1 year ago

The problem is that WebAssembly sets a hard minimum/maximum memory import size at compile time, which isn't what we want. I couldn't figure out how to configure Emscripten properly.

I've managed to get around it by patching the WebAssembly file at runtime. The rewrite I'm working on has support for it, but it's not ready for release yet. This is definitely an issue, especially since I'm adding x86-64 support -- a lot of the guests don't like small RAM sizes.

Pierrestro commented 8 months ago

i can go up to 228 mb

Pierrestro commented 8 months ago

try to modify this line image

Pierrestro commented 8 months ago

try using qemu instead i can't help more