fn blt(cpu: &mut Cpu, addr: u64, word: u32) -> Result<(), Trap> {
    let o = parse_type_b(word);
    match signed(&cpu, cpu.x[o.rs1 as usize]) < signed(&cpu, cpu.x[o.rs2 as usize]) {
        true => cpu.pc = addr.wrapping_add(o.imm),
        _ => {}
    }
    Ok(())
}
/// [blt rs1,rs2,offset]
/// BLT and BLTU take the branch if rs1 is less than rs2, using signed and unsigned
/// comparison respectively.
[blt rs1,rs2,offset]
BLT and BLTU take the branch if rs1 is less than rs2, using signed and unsigned
comparison respectively.
[ blt rs1 rs2 offset ] BLT and BLTU take the branch if rs1 is less than rs2 using signed and unsigned comparison respectively .
fn blt(cpu: &mut Cpu, addr: u64, word: u32) -> Result<(), Trap> {
    let o = parse_type_b(word);
    match signed(&cpu, cpu.x[o.rs1 as usize]) < signed(&cpu, cpu.x[o.rs2 as usize]) {
        true => cpu.pc = addr.wrapping_add(o.imm),
        _ => {}
    }
    Ok(())
}
fn blt ( cpu : & mut Cpu , addr : u64 , word : u32 ) -> Result < ( ) , Trap > { let o = parse_type_b ( word ) ; match signed ( & cpu , cpu . x [ o . rs1 as usize ] ) < signed ( & cpu , cpu . x [ o . rs2 as usize ] ) { true => cpu . pc = addr . wrapping_add ( o . imm ) , _ => { } } Ok ( ( ) ) }
[blt rs1,rs2,offset]
BLT and BLTU take the branch if rs1 is less than rs2, using signed and unsigned
comparison respectively.
[ blt rs1 rs2 offset ] BLT and BLTU take the branch if rs1 is less than rs2 using signed and unsigned comparison respectively .
cpu
&mut Cpu
addr
u64
word
u32