fn display_ram(ram: Vec<u8>, start: usize, length: usize, depth: usize) -> String {
    let mut result = String::new();

    for i in start..start + depth * length {
        if i % length == 0 {
            result += format!("\n{1:00$X}  --  ", 4, i).as_str();
        }
        result += format!(" {1:00$X}", 2, ram[i]).as_str();
    }
    result
}
/// Display ram on a length * depth
Display ram on a length * depth
Display ram on a length * depth
fn display_ram(ram: Vec<u8>, start: usize, length: usize, depth: usize) -> String {
    let mut result = String::new();
    for i in start..start + depth * length {
        if i % length == 0 {
            result += format!("\n{1:00$X}  --  ", 4, i).as_str();
        }
        result += format!(" {1:00$X}", 2, ram[i]).as_str();
    }
    result
}
fn display_ram ( ram : Vec < u8 > , start : usize , length : usize , depth : usize ) -> String { let mut result = String :: new ( ) ; for i in start .. start + depth * length { if i % length == 0 { result += format ! ( " \n " 4 i ) . as_str ( ) ; } result += format ! ( " " 2 ram [ i ] ) . as_str ( ) ; } result }
Display ram on a length * depth
Display ram on a length * depth
ram
Vec<u8>
start
usize
length
usize
depth
usize
ram
Vec<u8>
start
usize
length
usize
depth
usize