fn write_data_bytes(f: &mut File, from: Address, to: Address) {
    use std::io::Write;

    if from < to {
        f.write("\t.byte ".as_bytes()).unwrap();

        let mut cursor = from;
        while cursor < to {
            let byte = unsafe { cursor.load::<u8>() };
            f.write_fmt(format_args!("0x{:x}", byte)).unwrap();

            cursor += 1 as ByteSize;
            if cursor != to {
                f.write(",".as_bytes()).unwrap();
            }
        }

        f.write("\n".as_bytes()).unwrap();
    }
}
/// writes raw bytes from memory between from_address (inclusive) to to_address (exclusive)
writes raw bytes from memory between from_address (inclusive) to to_address (exclusive)
writes raw bytes from memory between from_address ( inclusive ) to to_address ( exclusive )
fn write_data_bytes(f: &mut File, from: Address, to: Address) {
    use std::io::Write;
    if from < to {
        f.write("\t.byte ".as_bytes()).unwrap();
        let mut cursor = from;
        while cursor < to {
            let byte = unsafe { cursor.load::<u8>() };
            f.write_fmt(format_args!("0x{:x}", byte)).unwrap();
            cursor += 1 as ByteSize;
            if cursor != to {
                f.write(",".as_bytes()).unwrap();
            }
        }
        f.write("\n".as_bytes()).unwrap();
    }
}
fn write_data_bytes ( f : & mut File , from : Address , to : Address ) { use std :: io :: Write ; if from < to { f . write ( " \t " . as_bytes ( ) ) . unwrap ( ) ; let mut cursor = from ; while cursor < to { let byte = unsafe { cursor . load :: < u8 > ( ) } ; f . write_fmt ( format_args ! ( " " byte ) ) . unwrap ( ) ; cursor += 1 as ByteSize ; if cursor != to { f . write ( " " . as_bytes ( ) ) . unwrap ( ) ; } } f . write ( " \n " . as_bytes ( ) ) . unwrap ( ) ; } }
writes raw bytes from memory between from_address (inclusive) to to_address (exclusive)
writes raw bytes from memory between from_address ( inclusive ) to to_address ( exclusive )
f
&mut File
from
Address
to
Address
f
&mut File
from
Address
to
Address