Search packages, repositories and app categories

GitHub repositorycbonello/lh5801

Sharp LH5801

Sharp LH5801 8-bit microprocessor emulator in Dart.

Sharp LH5801 project cover
Stars
5
Forks
1
Last push (UTC)
Apr 14, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

Christophe Bonello GitHub avatar
GitHub author

Christophe Bonello ↗

Dart, Flutter, Go and JavaScript

Huntington National BankNew York
LanguagesDartC++

Categories

Dependencies used

Dependency list 5 items

App categories

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗