Skip to main content

A high-performance, 8-bit CPU emulator, designed as a drop-in replacement for ByteCore, offering enhanced speed while maintaining full compatibility with the original ByteCore interfaces.

Project description

ByteCoreFast Emulator

ByteCoreFast is a high-performance drop-in replacement for the ByteCore Emulator. It extends the ByteCore classes and replaces the emulator engine with a custom engine written in C for enhanced speed. This project aims to maintain 100% compatibility with the public interfaces of the ByteCore Emulator. If you encounter any incompatibilities, please create an issue detailing the discrepancy.

Key Features

  • Fast performance for long-running programs.
  • Seamless integration with ByteCore Emulator projects.
  • Simple installation and usage.

Installation

Using pip

To install ByteCoreFast, run:

pip3 install bytecorefast

Manual Setup

  1. Ensure you have Python 3.11 or newer installed.
  2. Clone the repository and navigate into the root directory.
  3. (Optional) Create a Python virtual environment to isolate dependencies.
  4. Install the necessary dependencies:
pip3 install -r requirements.txt

Gitpod Setup

You can also use Gitpod to run the emulator by clicking here.

How to Use

To use ByteCoreFast, replace the import statement in your project:

# Original import
from bytecore.emulator import ByteCore

# New import for faster performance
from bytecorefast.emulator import ByteCore

You should now see improved performance for long-running programs. Note that small programs or step-by-step execution might be slower due to overhead.

Running the Emulator

To run the emulator, follow the instructions provided in the ByteCore project.

Troubleshooting

If the C code is not compiled for your system, you may encounter issues. In such cases, please revert to the original ByteCore Emulator written entirely in Python.

License

This project is licensed under the terms of the MIT License. See the LICENSE file for the full text.

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

bytecorefast-1.0.2.tar.gz (16.8 kB view hashes)

Uploaded Source

Built Distributions

bytecorefast-1.0.2-cp311-cp311-win_amd64.whl (19.7 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

bytecorefast-1.0.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl (42.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64 manylinux: glibc 2.5+ x86-64

bytecorefast-1.0.2-cp311-cp311-macosx_10_9_universal2.whl (22.5 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

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