batpu-assembly

Crates.iobatpu-assembly
lib.rsbatpu-assembly
version0.3.1
created_at2026-01-04 14:06:04.648397+00
updated_at2026-01-22 09:39:20.334253+00
descriptionA library for doing assembly work for the BatPU-2
homepage
repositoryhttps://codeberg.org/SDFTDusername/batpu-assembly
max_upload_size
id2021919
size28,656
SDFTDusername (SDFTDusername)

documentation

README

batpu-assembly

batpu-assembly is a Rust library for assembly work for the BatPU-2 (ISA).

Example

let mut instructions: Vec<Instruction> = Vec::new();
let labels = HashMap::new();

instructions.push(
    // Loads 5 into r1
    Instruction::LoadImmediate(
        Register(u4!(1)),
        Immediate(5)
    )
);

let binary = instructions_to_binary(instructions, &labels).unwrap();
Commit count: 56

cargo fmt