Giter VIP home page Giter VIP logo

easier68k's Introduction

Easier68k Build Status

Easier68k is a python library that assembles and simulates the Motorola 68k CPU Architecture.

NOTE: Easier68k is currently under heavy production and is not stable.

Motivation

There are very few 68K simulators and assemblers and the ones that exist were all found to be lacking in some areas. We realized we could do better:

  • Easier68k is cross platform.
  • Easier68k is built as a modular library so anyone can build a front end for it or integrate a 68k simulation into their project.
  • Easier68k has a focus on correctness by using unit tests and integration tests for everything.
  • Easier68k is MIT licensed so you can use it however you would like.

How to Use the CLI

The cli is in the folder "easier68k-cli" which comes in this Github repository. Go to the easier68k-cli folder in the terminal/command prompt and install the dependencies with

python -m pip install -r requirements.txt

Then run the application with

python ./cli.py

You can now assemble and simulate a file

(easier68k) assemble ./file.x68, ./assembled.json
(easier68k) simulate ./assembled.json
(easier68k.simulate) run
(easier68k.simulate) exit
(easier68k) exit

See the readme in the easier68k-cli for complete documentation.

Installation

Easier68k currently targets only Python 3.5 and 3.6. Other versions may work, but are not actively supported.

See Easier68k-SampleProject as an example of incorporating this package into your code.

  1. Add to your requirements.txt and install:

    # Add this repo to your project's requirements.txt (create one if it doesn't)
    echo git+https://github.com/Chris-Johnston/Easier68k >> requirements.txt
    
    # (re-)install your project requirements (you may want to include the --upgrade flag)
    python -m pip install -r requirements.txt
  2. Use the package in your code:

    import easier68k
    sim = easier68k.simulator.m68k.M68K()
    # you can now use the package!

Testing

Running the tests assumes that all the prior installation steps have been run already. The testing sequence is defined in tests/travis.sh, but these can be run manually.

Doctests are implemented on most smaller methods and utility functions, and pytests are planned for the overall functionality.

A list of all modules to test is defined in tests/run_doctest.py. Update this file when new doctest-able modules are added to the CI.

This file can be run from the shell using python tests/run_doctest.py.

License

Easier68k is under the MIT license.

easier68k's People

Contributors

adamukaapan avatar chris-johnston avatar linuxkid21 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.