#python-bindings #front-end #anima #sub-crate #6502 #supplies #vm6502

anima6502

An anima6502 subcrate which supplies Python bindings to vm6502

2 releases

0.1.1 Oct 23, 2022
0.1.0 Oct 23, 2022

#3 in #supplies


Used in emu6502

GPL-3.0-or-later

5KB

Anima

Anima provides Python bindings for the virtual machine from crate::vm6502.

Anima uses maturin build tooling.

It's recommended you first create a virtual env in the root of emu6502 before installing.

Setup

Build

    > cd 6502
    > maturin [develop|release]     # develoop automatically installs

    # To develop the Anima backend python
    > pip install -e .

    # Tests
    > maturin test

S/N: maturin develop will rewrite this pip installation, useful for python only changes.

Running the Demo Python Frontend

After building with maturin, you can simply run anima, or use it's bindings in python with anima._anima.

    > anima6502

Using Python bindings after installing

from anima._anima import Animator

animator = Animator()
animator.do_program(0x0000, "690101690101")

Dependencies

~4.5–9.5MB
~113K SLoC