(bytes: &[u8], off: usize)
| 3 | use asm_to_binary::rv_instruction::RvInstruction; |
| 4 | |
| 5 | fn word_at(bytes: &[u8], off: usize) -> u32 { |
| 6 | u32::from_le_bytes(bytes[off..off + 4].try_into().expect("4-byte word")) |
| 7 | } |
| 8 | |
| 9 | fn sign_extend_12(v: u32) -> i64 { |
| 10 | let raw = (v & 0x0FFF).cast_signed(); |
no outgoing calls
no test coverage detected