MGT format: Difference between revisions

From Sinclair Wiki
Jump to navigation Jump to search
(Created page with "category:specifications Category:Easy Disk Image Formats Category:Emulator Disk Image Formats = MGT/IMG Disk Image Format = The MGT/IMG format was created for st...")
 
mNo edit summary
Line 11: Line 11:
== MGT/IMG file structure ==
== MGT/IMG file structure ==


MGT/IMG images can store single or double sided 40 or 80 track disk images, but most of the files are double.side 80 track disk images.
MGT/IMG images can store single or double sided 40 or 80 track disk images, but most of the files are double side 80 track disk images.


=== File Header ===
=== File Header ===

Revision as of 17:38, 13 February 2016


MGT/IMG Disk Image Format

The MGT/IMG format was created for storing DISCiPLE/+D disk images for emulation.

This format is member of the Easy Disk Image Formats and contains only the data of sectors.

MGT/IMG file structure

MGT/IMG images can store single or double sided 40 or 80 track disk images, but most of the files are double side 80 track disk images.

File Header

There is no any header or file signature (magic bytes).

Data

Sectors laid from 1st to last within a track:

  • Sector 1
  • Sector 2

...

  • Sector last

Tracks in MGT file

Track data follow the “alt” schema:

  • Side: 0 Track: 0
  • Side: 1 Track: 0
  • Side: 0 Track: 1

...

  • Side: 0 Track: 79
  • Side: 1 Track: 79

Tracks in IMG file

Track data follow the “out-out” schema:

  • Side: 0 Track: 0
  • Side: 0 Track: 1
  • Side: 0 Track: 2

...

  • Side: 0 Track: 79
  • Side: 1 Track: 0
  • Side: 1 Track: 1

...

  • Side: 1 Track: 79

File length

DISCiPLE/+D uses 512 BPS and 10 SPT for disks (see MGT filesystem), so a

  • 40 track 1 sided image length is 204800 byte (1×40×10×512)
  • 40 track 2 sided image length is 409600 byte
  • 80 track 1 sided image length is 409600 byte
  • 80 track 2 sided image length is 819200 byte