D88FileIO

Crates.ioD88FileIO
lib.rsD88FileIO
version0.0.8
sourcesrc
created_at2022-02-06 16:01:50.159007
updated_at2022-04-03 14:26:55.26
descriptiond88 File Access Lib.
homepage
repositoryhttps://github.com/ORYZAPAO/d88dmp
max_upload_size
id527895
size20,067
ORYZA (ORYZAPAO)

documentation

README

D88FileIO

CircleCI

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);
    }
  }
}

See also

Commit count: 273

cargo fmt