Crate armv6_m_instruction_parser
source ·Expand description
Library to parse ARMv6-M thumb instructions.
Provides a enum with all instructions, register types and a function to parse binary representation into the enum with proper arguments.
Example
match parse(&program_memory[0..4]) {
Ok(instruction) => println!("Instruction: {:?}", instruction),
Err(_) => println!("Not a valid instruction.")
}
Modules
- Provides a instruction type and a enum with all operations and there arguments.
Functions
- This function parses a input byte slice into one instruction. Returns Err(&str) if instruction is invalid.