Skip to content

A rewrite of the JDH-8 assembler in Rust.

License

Notifications You must be signed in to change notification settings

AppleFlavored/jasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A rewrite of the JDH-8 assembler in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Languages