8 releases
0.0.8 | Apr 3, 2022 |
---|---|
0.0.7 | Mar 1, 2022 |
0.0.6 | Feb 27, 2022 |
#1203 in Filesystem
42 downloads per month
Used in d88dmp
21KB
415 lines
D88FileIO
Introduction
D88FileIO is simple access library for D88 file.
D88 file is disk Image file for Japanese 8bit Retro PC, NEC PC-8801 Series, Sharp X1 Series, MSX etc..
Example
use D88FileIO::fileio::D88FileIO;
fn main() {
let mut d88fileio = D88FileIO::open("./ABC.d88");
// Sort by Disk Sector Order
d88fileio.sector_sort();
// *.d88 File Header
println!("{:?}", d88fileio.disk.header);
//
for track in d88fileio.disk.track_tbl.iter() {
for sector in track.sector_tbl.iter(){
// *.d88 Disk Sector Header
println!("{:?}", sector.header);
// *.d88 Sector Raw Data (byte array)
println!("{:?}", sector.data);
}
}
}