GithubHelp home page GithubHelp logo

chip8's Introduction

Chip8 Emulator

This project is an example of python module implemented in Rust programming language. The core of Chip8 emulator was implemented in Rust and exported to Python with PyO3 crate. The rest of the application was created in pure Python with help of pygame and pillow packages.

How to build extension?

You can just run cargo, that will generate python native extension:

$ cargo build

On MacOS few additional linker arguments are required, so you may have to build as follows:

$ cargo rustc --release -- -C link-arg=-undefined -C link-arg=dynamic_lookup

How to run unit tests?

In order to execute unit tests you have to disable default features, otherwise you may encounter wired linking errors:

$ cargo test --no-default-features

How to build python package?

Please use maturin in order to build python wheels for you platform. Just run following command in project root directory:

$ maturin build

This should created a python package in taget/wheels subdirectory.

How to run emulator?

Please install chip8 python package and run chip8 binary. You have the pass the path to the ROM file as first command line argument:

$ chip8 <path_to_the_rom_file>

Links

chip8's People

Contributors

p3we avatar

Watchers

 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.