Crates.io | jasm |
lib.rs | jasm |
version | 0.1.0 |
source | src |
created_at | 2023-12-21 19:22:05.074578 |
updated_at | 2023-12-21 19:22:05.074578 |
description | An assembler for the JDH-8 architecture. |
homepage | |
repository | https://github.com/AppleFlavored/jasm |
max_upload_size | |
id | 1077336 |
size | 14,340 |
An assembler for the JDH-8 architecture written in Rust.
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();
}
JASM is licensed under the MIT License. See LICENSE for more details.