MCPcopy Index your code
hub / github.com/LPC4/Full-Stack / RiscvFormat

Interface RiscvFormat

crates/asm-to-binary/src/encode_decode.rs:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1pub type Reg = u8;
2
3pub trait RiscvFormat: Sized {
4 fn encode(self) -> u32;
5 fn decode(word: u32) -> Self;
6}
7
8/// =============================================================================
9/// R-Type: Register-Register

Callers

nothing calls this directly

Implementers 1

encode_decode.rscrates/asm-to-binary/src/encode_decode

Calls

no outgoing calls

Tested by

no test coverage detected