| Crates.io | rask-x86_64 |
| lib.rs | rask-x86_64 |
| version | 0.1.0 |
| created_at | 2025-10-06 18:11:44.48718+00 |
| updated_at | 2025-10-06 18:11:44.48718+00 |
| description | x86_64 architecture-specific implementation for Rask |
| homepage | |
| repository | https://github.com/chrischtel/rask |
| max_upload_size | |
| id | 1870520 |
| size | 14,533 |
x86_64 instruction encoder for the Rask project.
use rask_x86_64::{encoder::Encoder, registers::Reg64::*, operand::Operand};
let mut encoder = Encoder::new();
encoder.mov(Operand::Reg(RAX), Operand::Imm(1337));
encoder.add(RAX, RBX);
encoder.ret();
let bytes = encoder.bytes(); // Raw x86_64 machine code
Run the included examples:
cargo run --example basic_encoding
cargo run --example rex_prefixes
cargo run --example arithmetic