jasm

Crates.iojasm
lib.rsjasm
version0.1.0
sourcesrc
created_at2023-12-21 19:22:05.074578
updated_at2023-12-21 19:22:05.074578
descriptionAn assembler for the JDH-8 architecture.
homepage
repositoryhttps://github.com/AppleFlavored/jasm
max_upload_size
id1077336
size14,340
(AppleFlavored)

documentation

README

JASM

An assembler for the JDH-8 architecture written in Rust.

Assembler API

The assembler is available as a library on crates.io. Here is a basic example of how to use the API:

fn main() {
    let mut assembler = Assembler::new();

    // mw a, 4
    // mw b, 3
    // add a, b
    assembler.mw(Register::A, RegisterOrImm::Imm8(4));
    assembler.mw(Register::B, RegisterOrImm::Imm8(3));
    assembler.add(Register::A, RegisterOrImm::Reg(Register::B));

    let bytes = assembler.bytes();
}

License

JASM is licensed under the MIT License. See LICENSE for more details.

Commit count: 7

cargo fmt