Skip to main content

MC6809 CPU emulator written in Python

Project description

MC6809 CPU emulator written in Python

MC6809 is a Open source (GPL v3 or later) emulator for the legendary 6809 CPU, used in 30 years old homecomputer Dragon 32 and Tandy TRS-80 Color Computer (CoCo)…

Tested with Python 2.7, 3.4 and PyPy

Build Status on travis-ci.org

travis-ci.org/6809/MC6809

Coverage Status on coveralls.io

coveralls.io/r/6809/MC6809

A example usage can be find in: MC6809/example6809.py

There is a simple benchmark. Run e.g.:

~$ MC6809 benchmark --help

# run benchmark with default settings:
~$ MC6809 benchmark

# run with own settings:
~$ MC6809 benchmark --loops 10 --multiply 20

(MC6809 is the cli installed by setup.py)

tests

We use nose to run the tests, e.g.:

~$ cd MC6809
~/MC6809 $ python2 setup.py nosetests
~/MC6809 $ python3 setup.py nosetests

profile

To profile, e.g.:

~$ python -m cProfile -s cumulative MC6809 benchmark

TODO

  1. Update ‘cpu6809_html_debug.py’

  2. Use bottle for http control server part

unimplemented OPs:

  • RESET

  • SWI / SWI2 / SWI3

  • SYNC

History

(Some of the points are related to DragonPy Emulator)

  • 19.10.2015 - v0.5.0

    • Split CPU with mixin inheritance

    • Optimizing:

      • remove .get() function calls from registers

      • move Condition Code Register (CC) into CPU via mixin class

    • Bugfix TFR and EXG by convert_differend_width()

    • Run DragonPy unittests on travis CI, too.

  • 24.08.2015 - v0.4.6

    • Add a “max_delay”, to fix the “freeze” after a speed limit change

    • rename some of the “speed limit” variables

  • 21.08.2015 - v0.4.5

    • deactivate ‘cpu6809_html_debug.py’ - TODO: update it!

    • update cli unittests

    • update README and code cleanup

  • 10.08.2015 - v0.4.4 - bugfix and cleanup the tests

  • 10.08.2015 - v0.4.3 - run unittests with nose

  • 27.05.2015 - v0.4.2 - Add MC6809/example6809.py

  • 26.05.2015 - v0.4.0, 0.4.1 - Split MC6809 from DragonPy

  • 22.09.2014 - Remove hacked CPU skeleton generator scripts with commit ac903a8f

  • 14.09.2014 - Release v0.2.0 - Add a speedlimit, config dialog and IRQ: Forum post 11780

  • 05.09.2014 - Release v0.1.0 - Implement pause/resume, hard-/soft-reset 6809 in GUI and improve a little the GUI/Editor stuff: v0.1.0 see also: Forum post 11719.

  • 27.08.2014 - Run CoCo with Extended Color Basic v1.1, bugfix transfer BASIC Listing with 8fe24e5…697d39e see: Forum post 11696.

  • 20.08.2014 - rudimenary BASIC IDE works with 7e0f16630…ce12148, see also: Forum post 11645.

  • 05.08.2014 - Start to support CoCo, too with 0df724b, see also: Forum post 11573.

  • 04.08.2014 - Use the origin Pixel-Font with Tkinter GUI, see: Forum post 4909 and Forum post 11570.

  • 27.07.2014 - Copyrigth info from Dragon 64 ROM is alive with 543275b, see: Forum post 11524.

  • 29.06.2014 - First “HELLO WORLD” works, see: Forum post 11283.

  • 27.10.2013 - “sbc09” ROM works wuite well almist, see: Forum post 9752.

  • 16.10.2013 - See copyright info from “Simple6809” ROM with 25a97b6 see also: Forum post 9654.

  • 10.09.2013 - Start to implement the 6809 CPU with 591d2ed

  • 28.08.2013 - Fork “Apple ][ Emulator” written in Python: https://github.com/jtauber/applepy to https://github.com/jedie/DragonPy

donation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MC6809-0.5.0.tar.gz (94.0 kB view details)

Uploaded Source

Built Distributions

MC6809-0.5.0-py2.py3-none-any.whl (122.2 kB view details)

Uploaded Python 2 Python 3

MC6809-0.5.0-py2.7.egg (104.3 kB view details)

Uploaded Source

File details

Details for the file MC6809-0.5.0.tar.gz.

File metadata

  • Download URL: MC6809-0.5.0.tar.gz
  • Upload date:
  • Size: 94.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MC6809-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f6afbcd8055f69d403d99aa6eacb922b91462418597ece6dce136d30a4ec2a4d
MD5 49b6bb5e09bdb01de300d31f1376d2b2
BLAKE2b-256 168d8591771eeda0d2f5653b2b8e843093088bf9580c59a221ec0511110d0e9f

See more details on using hashes here.

File details

Details for the file MC6809-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for MC6809-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f2fe0b4c05caa2e68043d4ba3a0e34a42f2eedccee8a4ee2c1cb096695c956ac
MD5 4077ced87149470a2ed01bc83b31bf80
BLAKE2b-256 d1fcd2f860d85603f479a8984db4450fe701baec2515bf9779da5ed2ed532b76

See more details on using hashes here.

File details

Details for the file MC6809-0.5.0-py2.7.egg.

File metadata

  • Download URL: MC6809-0.5.0-py2.7.egg
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MC6809-0.5.0-py2.7.egg
Algorithm Hash digest
SHA256 33576a55c3a366d719dff9786128031231b8fc2b8c2bcbde4b08b2c524ee25b8
MD5 88ab0aa1003c2269a3ac46255fc4e34e
BLAKE2b-256 71bab15c3e0b5e78e00b2af87a56e1718ce57e9dffa5ba10f4d266f3f40d5c07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page