# Pollex
[Pollex](https://crates.io/crates/pollex/) is a Rust-written library for manipulating instructions of Arm ISAs.
## Usage
Instructions can be created directly using the [`Instruction`](arm32::Instruction) type:
```rust
use pollex::arm32::{
Instruction,
Predicate,
Register,
RorRegister,
SFlag,
};
// MOVS r0, r1, ROR r9
let instr = Instruction::Mov {
predicate: Predicate::Al,
s: SFlag::On,
destination: Register::R0,
source: RorRegister { base: Register::R1, shift: Register::R9 }.into(),
};
```
## Acknowledgements
### Copyright & Licensing
Copyright 2024-2025 Gabriel Bjørnager Jensen.
The Source Code Forms of this project are – where noted as such – subject to the terms of the Mozilla Public License, version 2.0.
If a copy of the MPL was not distributed with this project, you can obtain one at <https://mozilla.org/MPL/2.0/>.
### Trademarks
Arm and Thumb are registered trademarks of Arm Limited in the E.U.