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

fix #495: VM emulator ignores Sys.wait #528

Merged

Conversation

dorianignee
Copy link
Contributor

The Sys.wait instruction used to utilize a simple loop that looped ms times. Because the execution speed differs a lot, depending on the computer and browser, the wait instruction didn't seem to wait at all.

I guess, the better solution is, to use a javascript timeout, so the wait time will be consistent in all configurations.

Dorian Ignee added 2 commits December 10, 2024 11:31
@DavidSouther DavidSouther merged commit a7d4db6 into nand2tetris:main Dec 19, 2024
1 check passed
@dorianignee dorianignee deleted the fix/vm-emulator-ignores-Sys.wait branch December 20, 2024 08:53
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