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§

conditions
instructons
Provides a instruction type and a enum with all operations and there arguments.
registers

Functions§

parse
This function parses a input byte slice into one instruction. Returns Err(&str) if instruction is invalid.