Crates.io | intel-8080-kit |
lib.rs | intel-8080-kit |
version | 0.1.1 |
source | src |
created_at | 2021-03-16 11:06:31.170478 |
updated_at | 2021-03-28 21:48:16.267135 |
description | An Intel 8080 library crate written in Rust that provides an assembler, a disassembler and an emulator with example executables. |
homepage | |
repository | https://github.com/bynect/intel-8080-kit |
max_upload_size | |
id | 369648 |
size | 187,554 |
An Intel 8080 library crate written in Rust that provides an assembler, a disassembler and an emulator with respective executables.
The assembler currently supports only a subset of the Intel 8080 assembly language.
$ cargo run --bin asm8080 tests/basic.asm
Emitted 8 bytes to out.bin from tests/basic.asm.
$ cargo run --bin dis8080 out.bin
PC OPCODE
0000 In(0)
0002 MviB(100)
0004 AddB
0005 Out(10)
0007 Hlt
$ cargo run --bin emu8080 out.bin
Input byte from port 0.
Output byte 100 to port 10.
Execution of out.bin took 23.8µs.