| Crates.io | batpu-assembly |
| lib.rs | batpu-assembly |
| version | 0.3.1 |
| created_at | 2026-01-04 14:06:04.648397+00 |
| updated_at | 2026-01-22 09:39:20.334253+00 |
| description | A library for doing assembly work for the BatPU-2 |
| homepage | |
| repository | https://codeberg.org/SDFTDusername/batpu-assembly |
| max_upload_size | |
| id | 2021919 |
| size | 28,656 |
batpu-assembly is a Rust library for assembly work for the BatPU-2 (ISA).
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();