Crate lib_rv32_asm[−][src]
Re-exports
pub use lib_rv32_common as common;
Modules
Functions for encoding integers as instruction fields.
Errors that may arise when assembling.
Functions for parsing an instruction string.
Macros
Encode and integer as a bitmask for a B-type immediate.
Encode an integer as a bitmask for func3.
Encode an integer as a bitmask for func7.
Encode and integer as a bitmask for an I-type immediate.
Encode and integer as a bitmask for a J-type immediate.
Encode an integer as a bitmask for the opcode.
Encode a register number as a bitmask for rd.
Encode a register number as a bitmask for rs1.
Encode a register number as a bitmask for rs2.
Encode and integer as a bitmask for an S-type immediate.
Encode and integer as a bitmask for a U-type immediate.
Match an operation to the correct func3.
Match an operation to the correct func7.
Convert an instruction to it’s tokens, stripping out whitespace, parenthesis, and commas.
Functions
Assemble a single instruction.
Assemble a full program of newline-separated instructions.
Assemble a BufRead
down to a vector of words. The input should contain
the entire program.