|
@@ -33,16 +33,81 @@ class Format_IBM_1440(Format):
|
|
|
self.decode_track = self.fmt.decode_track
|
|
|
super().__init__()
|
|
|
|
|
|
+class Format_AtariST_360(Format):
|
|
|
+ img_compatible = True
|
|
|
+ default_trackset = 'c=0-79:h=0'
|
|
|
+ def __init__(self):
|
|
|
+ import greaseweazle.codec.ibm.mfm as m
|
|
|
+ self.fmt = m.AtariST_SS_9SPT
|
|
|
+ self.default_revs = m.default_revs
|
|
|
+ self.decode_track = self.fmt.decode_track
|
|
|
+ super().__init__()
|
|
|
+
|
|
|
+class Format_AtariST_400(Format):
|
|
|
+ img_compatible = True
|
|
|
+ default_trackset = 'c=0-79:h=0'
|
|
|
+ def __init__(self):
|
|
|
+ import greaseweazle.codec.ibm.mfm as m
|
|
|
+ self.fmt = m.AtariST_10SPT
|
|
|
+ self.default_revs = m.default_revs
|
|
|
+ self.decode_track = self.fmt.decode_track
|
|
|
+ super().__init__()
|
|
|
+
|
|
|
+class Format_AtariST_440(Format):
|
|
|
+ img_compatible = True
|
|
|
+ default_trackset = 'c=0-79:h=0'
|
|
|
+ def __init__(self):
|
|
|
+ import greaseweazle.codec.ibm.mfm as m
|
|
|
+ self.fmt = m.AtariST_11SPT
|
|
|
+ self.default_revs = m.default_revs
|
|
|
+ self.decode_track = self.fmt.decode_track
|
|
|
+ super().__init__()
|
|
|
+
|
|
|
+class Format_AtariST_720(Format):
|
|
|
+ img_compatible = True
|
|
|
+ def __init__(self):
|
|
|
+ import greaseweazle.codec.ibm.mfm as m
|
|
|
+ self.fmt = m.AtariST_DS_9SPT
|
|
|
+ self.default_revs = m.default_revs
|
|
|
+ self.decode_track = self.fmt.decode_track
|
|
|
+ super().__init__()
|
|
|
+
|
|
|
+class Format_AtariST_800(Format):
|
|
|
+ img_compatible = True
|
|
|
+ def __init__(self):
|
|
|
+ import greaseweazle.codec.ibm.mfm as m
|
|
|
+ self.fmt = m.AtariST_10SPT
|
|
|
+ self.default_revs = m.default_revs
|
|
|
+ self.decode_track = self.fmt.decode_track
|
|
|
+ super().__init__()
|
|
|
+
|
|
|
+class Format_AtariST_880(Format):
|
|
|
+ img_compatible = True
|
|
|
+ def __init__(self):
|
|
|
+ import greaseweazle.codec.ibm.mfm as m
|
|
|
+ self.fmt = m.AtariST_11SPT
|
|
|
+ self.default_revs = m.default_revs
|
|
|
+ self.decode_track = self.fmt.decode_track
|
|
|
+ super().__init__()
|
|
|
+
|
|
|
|
|
|
formats = {
|
|
|
'amiga.amigados': Format_Amiga_AmigaDOS,
|
|
|
'ibm.720': Format_IBM_720,
|
|
|
- 'ibm.1440': Format_IBM_1440
|
|
|
+ 'ibm.1440': Format_IBM_1440,
|
|
|
+ 'atarist.360': Format_AtariST_360,
|
|
|
+ 'atarist.400': Format_AtariST_400,
|
|
|
+ 'atarist.440': Format_AtariST_440,
|
|
|
+ 'atarist.720': Format_AtariST_720,
|
|
|
+ 'atarist.800': Format_AtariST_800,
|
|
|
+ 'atarist.880': Format_AtariST_880
|
|
|
}
|
|
|
|
|
|
def print_formats(f = None):
|
|
|
s = ''
|
|
|
for k, v in sorted(formats.items()):
|
|
|
if not f or f(k, v):
|
|
|
- s += k if not s else ', ' + k
|
|
|
+ if s:
|
|
|
+ s += '\n'
|
|
|
+ s += ' ' + k
|
|
|
return s
|