Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Drumato/asmpeach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asmpeach at crates.io asmpeach at docs.rs

asmpeach

x86_64 assembler

Get Started

How to use as an assembler command

cargo build
./target/debug/asmpeach <assembly-file in AT&T syntax>

How to use as a Rust crate

See documentation

use asmpeach;

fn main() -> Result<(), Box<dyn std::error::Error>>{
    // you can pass a file(or string).
    let elf_builder = asmpeach::assemble_file("asm.s", asmpeach::Syntax::ATANDT)?;
    
    elf_builder.generate_elf_file("obj.o", 0o644)?;

    Ok(())
}

Test

cargo test
cargo test --features sample

Dependencies

About

x86_64 assembler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages