Skip to content

SDFTDusername/batpu-assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batpu-assembly

batpu-assembly is a Rust library for doing any kind of work with the BatPU.

It has enums for instructions and helper functions to assemble and disassemble.

It also contains some other things such as Location::Offset for my batpu-assembler.

let mut instructions: InstructionVec = Vec::new();
let labels: Labels = HashMap::new();

instructions.push(
    // Load 5 into r1
    Instruction::LoadImmediate(
        Register::new(1).unwrap(),
        Immediate::new(5)
    )
);

let machine_code = instructions_to_binary(&instructions, &labels).unwrap();

About

Rust library for doing any kind of work with the BatPU

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages