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

Set Web UI elements to values from URL #19

Closed pgodwin closed 3 years ago

pgodwin commented 3 years ago

Passing some values like mem as a URL parameter isn't supported as the value is read from the field.

This pull request checks for the various parameters with a form field and sets their values as appropriate.

pgodwin commented 3 years ago

Oh sorry, commit f50f6c2cd34f626d777538ce8f0987aa17572a6b wasn't supposed to be part of this PR.

I'll fix up the the comments on the javascript code for the Web UI and update this PR. Thanks for the feedback.

(Edit: it's just bringing through the branch, I'll do the PRs from separate branches to prevent this in the future).