| Crates.io | xasm-rs |
| lib.rs | xasm-rs |
| version | 0.1.138 |
| created_at | 2025-02-23 06:29:23.527434+00 |
| updated_at | 2025-02-25 04:00:03.778635+00 |
| description | A rust crate for generating linux 32/64 bit assembly easily |
| homepage | |
| repository | https://github.com/skubed0007/xasm-rs |
| max_upload_size | |
| id | 1566092 |
| size | 56,187 |
NOTE: Xasm only support linux 64/32 bit though we do have plans for windows and mac in future
add the crate to your Cargo.toml file by running the following command:
cargo add xasm-rs
first create a mutable xasm class in folllowing way:
let mut xasm = init::Xasm::new();
and now start adding tokens,vars,functions to xasm here is a sample stuff you can do
//add a string type variable called "mystring"
xasm.vars.push(Vars::String("mystring".to_string(),"Hello world!".to_string()));
// print the varible to STDOUT using print token
xasm.tokens.push(init::Tokens::print(init::FileDescriptor::STDOUT, "%mystring \\n".chars().collect()));
Xasm is licensed under the Joay-License which in short says that:
The Joay License allows non-commercial use, modification, and distribution of the software with proper attribution. Commercial use and converting the software to closed-source are prohibited