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

Convert to Python 3 #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

philippechataignon
Copy link

The PR is a conversion to Python 3. It includes PR #22 for using tests and fixes a bug in BRK instruction : B status flag must be set BEFORE pushing on stack.

Closes #23

philippechataignon and others added 5 commits November 24, 2021 13:08
- CPU options were only used to pass 'pc'. Rather than adding another
  get_options/Options to tests,py, replacing options with a pc argument
  removes CPU's dependency on command-line options.

- As a workaround for 'Address already in use', control_server is now
  enabled/disabled by memory.use_bus (which is False in unit tests).
Float division in python3 -> force integer division with //
Remaining BaseHTTPServer instead of http.server
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.

Convert to Python 3
2 participants