Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added multiple options to webemulator. #308

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

JimmyDansbo
Copy link
Contributor

Now the webemulator is able to handle the following options:

  • ram = amount of memory in steps of 8K (8-2048)
  • cpu = c816 or c02
  • mhz = speed in MHz, minimum 1
  • keymap = same list of keymaps supported as normal emualtor
  • longpwron = Boot emulator into RAM diagnostics
  • widescreen = enable widescreen if true
  • capture = capture keyboard and mouse if true All of the above options are available on the address/url or in the manifest file. On the address line longpwron, widescreen & capture do not need values to be enabled. In the manifest file, they must be set to true.
    Options in manifest file take precedens over options on address line.

On the address line the options would look something like this:
?manifest=myprog.prg&ram=2048&cpu=c816&mhz=10&keymap=da&widescreen&capture&longpwron

The options in the manifest file would look like this:
"ram": "2048",
"cpu": "c816",
"mhz": "10",
"keymap": "da",
"widescreen": true,
"capture": true,
"longpwron": false,

Now the webemulator is able to handle the following options:
* ram = amount of memory in steps of 8K (8-2048)
* cpu = c816 or c02
* mhz = speed in MHz, minimum 1
* keymap = same list of keymaps supported as normal emualtor
* longpwron = Boot emulator into RAM diagnostics
* widescreen = enable widescreen if true
* capture = capture keyboard and mouse if true
All of the above options are available on the address/url or in the manifest file.
On the address line longpwron, widescreen & capture do not need values to be enabled.
In the manifest file, they must be set to true.
Options in manifest file take precedens over options on address line.
This should address this issue:
X16Community#287
@mooinglemur mooinglemur merged commit 119b557 into X16Community:master Oct 11, 2024
9 checks passed
emuArguments.push('-c816');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one point here, it's possible that 816 will become the default later, so perhaps this should check for c02 in cpu_val and if it is set, add -c02 to the emu args.

This will have to be done in a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants