FLUTTER ECOSYSTEM

cbonello/lh5801

डार्ट में शार्प LH5801 8-बिट माइक्रोप्रोसेसर एमुलेटर।

शार्प LH5801 प्रोजेक्ट कवर
Stars
5
Forks
1
अंतिम पुश (UTC)
14 अप्रैल 2026
प्रोजेक्ट स्थिति
सक्रिय
Christophe Bonello GitHub avatar
GITHUB User

Christophe Bonello ↗

Dart, Flutter, Go and JavaScript

Huntington National BankNew York
भाषाएँDartC++

तकनीकी विषय

उपयोग की गई निर्भरताएँ

निर्भरता सूची 5 आइटम

ऐप श्रेणियाँ

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Sharp LH5801

build codecov License: MIT

Sharp LH5801 8-bit Microprocessor emulator written in Dart.

This package is part of an ongoing project of writing a Sharp PC-1500 emulator with Dart/Flutter.

Features

  • Emulator — cycle-accurate LH5801 CPU emulation.
  • Assembler — assemble LH5801 source files into binary.
  • Disassembler — disassemble binary back to LH5801 mnemonics.
  • CLI tool — command-line interface for assembling and disassembling files.

Requirements

Dart SDK >=3.10.0 <4.0.0

Installation

Add lh5801 as a dependency in your pubspec.yaml:

dependencies:
  lh5801:
    git:
      url: https://github.com/cbonello/lh5801.git

Then run:

$ dart pub get

Usage

See example/ folder for a complete example that inverts the LCD screen of a Sharp PC-1500.

$ dart run example/main.dart

CLI

The package includes a command-line tool for assembling and disassembling files.

# Assemble a source file
$ dart run lh5801 asm input.asm -o output.bin

# Disassemble a binary file
$ dart run lh5801 dasm input.bin

# Set a custom origin address
$ dart run lh5801 dasm input.bin --origin 4000

Testing

$ dart test
00:03 +474: All tests passed!

Features and bugs

Please file feature requests and bugs at the issue tracker.