i8051

Crates.ioi8051
lib.rsi8051
version0.2.1
created_at2025-09-20 13:04:44.44524+00
updated_at2025-09-20 20:45:56.722469+00
descriptionAn emulator for the i8051 (MCS-51) microcontroller.
homepage
repositoryhttps://github.com/mmastrac/i8051
max_upload_size
id1847715
size50,249
Matt Mastracci (mmastrac)

documentation

README

i8051 Emulator

This crate provides an emulator for the i8051 microcontroller.

Usage

use i8051::Cpu;

let mut cpu = Cpu::new();
let mut ram = RAM::new();
let mut code = ROM::new(fs::read(&args.rom_file).unwrap());
let mut ports = Ports { ram: [0; 128] };

loop {
    if !cpu.step(&mut ram, &mut code, &mut ports) {
        break;
    }
}
Commit count: 12

cargo fmt