Crates.io | D88FileIO |
lib.rs | D88FileIO |
version | 0.0.8 |
source | src |
created_at | 2022-02-06 16:01:50.159007 |
updated_at | 2022-04-03 14:26:55.26 |
description | d88 File Access Lib. |
homepage | |
repository | https://github.com/ORYZAPAO/d88dmp |
max_upload_size | |
id | 527895 |
size | 20,067 |
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..
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);
}
}
}