forked from lipro-cpm4l/cpmtools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
diskdefs
1415 lines (1299 loc) · 25.9 KB
/
diskdefs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
diskdef ibm-3740
seclen 128
tracks 77
sectrk 26
blocksize 1024
maxdir 64
skew 6
boottrk 2
os 2.2
end
diskdef 4mb-hd
seclen 128
tracks 1024
sectrk 32
blocksize 2048
maxdir 256
skew 1
boottrk 0
os p2dos
end
diskdef pcw
seclen 512
tracks 40
sectrk 9
blocksize 1024
maxdir 64
skew 1
boottrk 1
os 3
libdsk:format pcw180
end
diskdef pc1.2m
seclen 512
tracks 80
# this format uses 15 sectors per track, but 30 per cylinder
sectrk 30
blocksize 4096
maxdir 256
skew 1
boottrk 0
os 3
end
# CP/M 86 on 1.44MB floppies
diskdef cpm86-144feat
seclen 512
tracks 160
sectrk 18
blocksize 4096
maxdir 256
skew 1
boottrk 2
os 3
libdsk:format ibm1440
end
# CP/M 86 on 720KB floppies
diskdef cpm86-720
seclen 512
tracks 160
sectrk 9
blocksize 2048
maxdir 256
skew 1
boottrk 2
os 3
end
diskdef cf2dd
seclen 512
tracks 160
sectrk 9
blocksize 2048
maxdir 256
skew 1
boottrk 1
os 3
libdsk:format pcw720
end
#amstrad: values are read from super block (special name hardcoded)
# Royal alphatronic
# setfdprm /dev/fd1 dd ssize=256 cyl=40 sect=16 head=2
diskdef alpha
seclen 256
tracks 40
sectrk 32
blocksize 2048
maxdir 128
skew 1
boottrk 2
os 2.2
end
# Apple II CP/M skew o Apple II DOS 3.3 skew
diskdef apple-do
seclen 256
tracks 35
sectrk 16
blocksize 1024
maxdir 64
skewtab 0,6,12,3,9,15,14,5,11,2,8,7,13,4,10,1
boottrk 3
os 2.2
end
# Apple II CP/M skew o Apple II PRODOS skew
diskdef apple-po
seclen 256
tracks 35
sectrk 16
blocksize 1024
maxdir 64
skewtab 0,9,3,12,6,15,1,10,4,13,7,8,2,11,5,14
boottrk 3
os 2.2
end
# MYZ80 hard drive (only works with libdsk, because it has a 256-byte header)
diskdef myz80
seclen 1024
tracks 64
sectrk 128
blocksize 4096
maxdir 1024
skew 1
boottrk 0
os 3
libdsk:format pcw720
end
# Despite being Amstrad formats, CPC System and CPC Data don't have an Amstrad
# superblock. You'll need to use libdsk to access them because the Linux
# and Windows kernel drivers won't touch them.
diskdef cpcsys
seclen 512
tracks 40
sectrk 9
blocksize 1024
maxdir 64
skew 1
boottrk 2
os 3
libdsk:format cpcsys
end
diskdef cpcdata
seclen 512
tracks 40
sectrk 9
blocksize 1024
maxdir 64
skew 1
boottrk 0
os 3
libdsk:format cpcdata
end
# after being read in with no sector skew.
diskdef nigdos
seclen 512
# NigDos double sided disk format, 42 tracks * 2 sides
tracks 84
sectrk 10
blocksize 2048
maxdir 128
skew 1
boottrk 0
# this format wastes half of the directory entry
logicalextents 1
os 3
end
diskdef epsqx10
seclen 512
tracks 40
sectrk 20
blocksize 2048
maxdir 128
skew 0
boottrk 2
os 2.2
end
diskdef ibm-8ss
seclen 512
tracks 40
sectrk 8
blocksize 1024
maxdir 64
skew 0
boottrk 1
os 2.2
end
diskdef ibm-8ds
seclen 512
tracks 40
sectrk 8
blocksize 1024
maxdir 64
skew 0
boottrk 1
os 2.2
end
diskdef electroglas
seclen 512
tracks 80
sectrk 10
blocksize 2048
maxdir 256
skew 0
boottrk 1
os 3
end
# IBM CP/M-86
# setfdprm /dev/fd1 sect=8 dtr=1 hd ssize=512 tpi=48 head=1
diskdef ibmpc-514ss
seclen 512
tracks 40
sectrk 8
blocksize 1024
maxdir 64
skew 1
boottrk 1
os 2.2
libdsk:format ibm160
end
# IBM CP/M-86
# setfdprm /dev/fd1 sect=8 dtr=1 hd ssize=512 tpi=48
diskdef ibmpc-514ds
seclen 512
tracks 80
sectrk 8
blocksize 2048
maxdir 64
skew 0
boottrk 2
os 2.2
libdsk:format ibm320
end
diskdef p112
seclen 512
tracks 160
sectrk 18
blocksize 2048
maxdir 256
skew 1
boottrk 2
os 3
end
diskdef p112-old
seclen 512
tracks 160
sectrk 18
blocksize 2048
maxdir 128
skew 1
boottrk 1
os 3
end
diskdef gide-cfa
seclen 512
tracks 1000
sectrk 16
blocksize 4096
maxdir 1024
skew 0
boottrk 2
os 3
end
diskdef gide-cfb
seclen 512
tracks 1000
sectrk 16
blocksize 4096
maxdir 1024
skew 0
boottrk 0
# Start of second partition
offset 1000trk
os 3
end
# AT&T/Olivetti Word Processor
diskdef attwp
seclen 256
tracks 80
sectrk 32
blocksize 2048
maxdir 128
boottrk 1
logicalextents 1
skewtab 0,2,4,6,8,10,12,14,1,3,5,7,9,11,13,15,16,18,20,22,24,26,28,30,17,19,21,23,25,27,29,31
os 2.2
end
# setfdprm /dev/fd0 zerobased SS DD ssize=512 cyl=40 sect=10 head=1
# Kaypro II
diskdef kpii
seclen 512
tracks 40
sectrk 10
blocksize 1024
maxdir 64
skew 0
boottrk 1
os 2.2
end
# setfdprm /dev/fd0 zerobased DS DD ssize=512 cyl=40 sect=10 head=2
# Kayro IV
diskdef kpiv
seclen 512
tracks 80
sectrk 10
blocksize 2048
maxdir 64
skew 0
boottrk 1
os 2.2
end
# setfdprm /dev/fd0 dd sect=10
diskdef interak
seclen 512
tracks 80
sectrk 20
blocksize 4096
maxdir 256
skew 1
boottrk 2
os 2.2
end
# Timex FDD3000 3"
diskdef fdd3000
seclen 256
tracks 40
sectrk 16
blocksize 1024
maxdir 128
boottrk 4
os 2.2
skew 7
end
# Timex FDD3000 3"
diskdef fdd3000_2
seclen 256
tracks 40
sectrk 16
blocksize 1024
maxdir 128
boottrk 2
os 2.2
skew 5
end
############################
# GdR/Robotron scp disks
############################
# robotron PC1715 SCP 185k (40*1* 5,1024 6 OFS 2k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=1024 cyl=40 sect=5 head=1 dtr=1 fm=0
diskdef 1715
seclen 1024
tracks 40
sectrk 5
blocksize 1024
maxdir 64
skew 0
boottrk 3
os 2.2
end
# robotron PC1715 SCP3 760k (80*2* 5,1024 8 OFS 4k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=1024 cyl=80 sect=5 head=2 dtr=1 fm=0
diskdef 17153
seclen 1024
tracks 160
sectrk 5
blocksize 2048
maxdir 128
skew 0
boottrk 4
os 3
end
# robotron PC1715 SCP 624k (80*2* 16,256 8 OFS 4k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=256 cyl=80 sect=16 head=2 dtr=1 fm=0
diskdef scp624
seclen 256
tracks 160
sectrk 16
blocksize 2048
maxdir 128
skew 0
boottrk 4
os 2.2
libdsk:format scp640
end
# robotron PC1715 SCP 640k (80*2* 16,256 0 OFS 4k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=256 cyl=80 sect=16 head=2 dtr=1 fm=0
diskdef scp640
seclen 256
tracks 160
sectrk 16
blocksize 2048
maxdir 128
skew 0
boottrk 0
os 2.2
libdsk:format scp640
end
# robotron PC1715 SCP 780k (80*2* 5,1024 8 OFS 4k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=1024 cyl=80 sect=5 head=2 dtr=1 fm=0
diskdef scp780
seclen 1024
tracks 160
sectrk 5
blocksize 2048
maxdir 128
skew 0
boottrk 4
os 2.2
libdsk:format scp800
end
# robotron PC1715 SCP 800k (80*2* 5,1024 0 OFS 4k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=1024 cyl=80 sect=5 head=2 dtr=1 fm=0
diskdef scp800
seclen 1024
tracks 160
sectrk 5
blocksize 2048
maxdir 128
skew 0
boottrk 0
os 2.2
libdsk:format scp800
end
# robotron Z9001 800k (80*2* 5,1024 0 OFS 6k DIR) 5.25"
# setfdprm /dev/fd1 ds dd ssize=1024 cyl=80 sect=5 head=2 dtr=1 fm=0
diskdef z9001
seclen 1024
tracks 160
sectrk 5
blocksize 2048
maxdir 192
skew 0
boottrk 0
os 2.2
end
# Visual Technology Visual 1050 computer
diskdef v1050
seclen 512
tracks 80
sectrk 10
blocksize 2048
maxdir 128
skew 0
boottrk 2
os 3
end
# Microbee 40 track 5.25" disks
diskdef microbee40
seclen 512
tracks 80
sectrk 10
blocksize 2048
maxdir 128
skewtab 1,4,7,0,3,6,9,2,5,8
boottrk 2
os 2.2
end
diskdef dreamdisk40
seclen 512
tracks 80
sectrk 10
blocksize 2048
maxdir 128
skewtab 1,4,7,0,3,6,9,2,5,8
boottrk 2
os 2.2
end
diskdef dreamdisk80
seclen 512
tracks 160
sectrk 10
blocksize 2048
maxdir 256
skewtab 1,4,7,0,3,6,9,2,5,8
boottrk 2
os 2.2
end
diskdef rc759
seclen 1024
tracks 154
sectrk 8
blocksize 2048
maxdir 512
boottrk 4
os 3
end
# ICL Comet: 40 track 5.25" Single Sided
#
diskdef icl-comet-525ss
seclen 512
tracks 40
sectrk 10
blocksize 1024
maxdir 64
skewtab 0,3,6,9,2,5,8,1,4,7
boottrk 2
os 2.2
end
diskdef z80pack-hd
seclen 128
tracks 255
sectrk 128
blocksize 2048
maxdir 1024
skew 0
boottrk 0
os 2.2
end
diskdef z80pack-hdb
seclen 128
tracks 256
sectrk 16384
blocksize 16384
maxdir 8192
skew 0
boottrk 0
os 2.2
end
# Bondwell 12 and 14 disk images in IMD raw binary format
diskdef bw12
seclen 256
tracks 40
sectrk 18
blocksize 2048
maxdir 64
skew 1
boottrk 2
os 2.2
end
diskdef bw14
seclen 256
tracks 80
sectrk 18
blocksize 2048
maxdir 64
skew 1
boottrk 2
os 2.2
end
############################
# north star cp/m disks
############################
#North Star floppy 360K
diskdef nsfd
seclen 512
tracks 70
sectrk 10
blocksize 2048
maxdir 64
skew 5
boottrk 2
os 2.2
end
#North Star CP/M Virtual-Disk file on Hard Disk
# prepared with allocation factor = 4
# as in "CR CPMB 4000 4"
# needs to be copied off hard drive before you can
# work on it with cpmtools
diskdef nshd4
seclen 512
tracks 512
sectrk 16
blocksize 4096
maxdir 256
skew 0
boottrk 0
os 2.2
end
#North Star CP/M Virtual-Disk file on Hard Disk
# prepared with allocation factor = 8
# as in "CR CPMB 6000 8"
# needs to be copied off hard drive before you can
# work on it with cpmtools
diskdef nshd8
seclen 512
tracks 1024
sectrk 16
blocksize 8192
maxdir 256
skew 0
boottrk 0
os 2.2
end
# Northstar Micro-Disk System MDS-A-D 175
diskdef mdsad175
seclen 512
blocksize 1024
tracks 35
maxdir 64
boottrk 2
sectrk 10
skew 5
os 2.2
end
# Northstar Micro-Disk System MDS-A-D 350
diskdef mdsad350
seclen 512
blocksize 2048
tracks 70
maxdir 64
boottrk 2
sectrk 10
skew 5
os 2.2
end
# Osborne 1
diskdef osborne1
seclen 1024
tracks 40
sectrk 5
blocksize 1024
maxdir 64
boottrk 3
os 2.2
end
# Osborne Nuevo/Vixen/4
diskdef osborne4
seclen 1024
tracks 80
sectrk 5
blocksize 2048
maxdir 128
skew 2
boottrk 2
os 2.2
end
# Lobo Max-80 8" CP/M 2
diskdef lobo2
seclen 256
tracks 77
sectrk 30
blocksize 2048
maxdir 64
skew 0
boottrk 2
os 2.2
end
#Lobo Max-80 8" CP/M 3
diskdef lobo3
seclen 512
tracks 77
sectrk 17
blocksize 2048
maxdir 64
skew 0
boottrk 2
os 3
end
# PRO CP/M RZ50 DZ format (Perhaps only 79 tracks should be used?)
diskdef dec_pro
seclen 512
tracks 80
sectrk 10
blocksize 2048
maxdir 128
skew 2
boottrk 2
os 2.2
end
# TDOS with DateStamper
diskdef tdos-ds
seclen 1024
tracks 77
sectrk 16
blocksize 2048
maxdir 256
skew 0
boottrk 1
os zsys
end
# The following entires are tested and working
# Most of the images are either from Don Maslin's archive or from
# Dave Dunfield's site, but not all - they are noted as well as
# their size.
# PMC Micromate
# Dave Dunfield's Imagedisk information from DSK conversion from IMD:
# IMageDisk Utility 1.18 / Mar 07 2012
# IMD 1.14: 10/03/2007 11:13:27
# PMC-101 MicroMate
# CP/M Plus
# System Master
# Assuming 1:1 for Binary output
# 0/0 250 kbps DD 5x1024
# 80 tracks(40/40), 400 sectors (12 Compressed)
# Entry derived from above - image size = 409,600, from Dave Dunfield
diskdef pmc101
seclen 1024
tracks 80
sectrk 5
blocksize 2048
maxdir 128
skew 0
boottrk 2
os 3
end
# BEGIN td143ssdd8 Turbo Dos 1.43 - SSDD 8" - 512 x 16
# Test OK - image size = 630,784, from Don Maslin's archive
diskdef td143ssdd8
seclen 512
tracks 77
sectrk 9
blocksize 1024
maxdir 64
skew 0
boottrk 0
os 2.2
# DENSITY MFM ,LOW
end
# BEGIN headsdd8 Heath H89, Magnolia CP/M - SSDD 8" - 512 x 16
# Test OK - image size = 630,784, from Don Maslin's archive
diskdef heassdd8
seclen 512
tracks 77
sectrk 16
blocksize 2048
maxdir 128
skew 0
boottrk 2
os 2.2
# DENSITY MFM ,LOW
end
# Morrow Designs Micro-Decision DOUBLE
# 64k CP/M Vers. 2.2 Rev.2.3 SIDED
# Copyright '76, '77, '78, '79, '80
# Digital Research
# Copyright 1982,1983 Morrow Designs, Inc.
# Assuming 1:1 for Binary output
# 0/0 250 kbps DD 5x1024
# 80 tracks(40/40), 400 sectors (128 Compressed)
# Entry derived from above data
# Test OK - image siae = 409600, from Dave Dunfield
diskdef mordsdd
seclen 1024
tracks 80
sectrk 5
blocksize 2048
maxdir 128
skew 3
boottrk 2
OS 2.2
end
# BEGIN morsddd Morrow MD2 - SSDD 48 tpi 5.25" - 1024 x 5
# Test OK - image size = 204,800, from Don Maslin's archive
# Also tested with image from Dave Dunfield
diskdef morsddd
seclen 1024
tracks 40
sectrk 5
blocksize 2048
maxdir 128
skew 3
boottrk 2
os 2.2
# DENSITY MFM ,LOW
# BSH 4 BLM 15 EXM 1 DSM 94 DRM 127 AL0 0C0H AL1 0 OFS 2
end
# BEGIN osb1sssd Osborne 1 - SSSD 48 tpi 5.25" - 256 x 10
# Test OK - image size = 102,400, from Don Maslin's archive
diskdef osb1sssd
seclen 256
tracks 40
sectrk 10
blocksize 2048
maxdir 64
skew 2
boottrk 3
os 2.2
# DENSITY MFM ,LOW
# BSH 4 BLM 15 EXM 1 DSM 45 DRM 63 AL0 080H AL1 0 OFS 3
end
# BEGIN ampdsdd Ampro - DSDD 48 tpi 5.25" - 512 x 10
# Test OK - image size = 409,600, from Don Maslin's archive
diskdef ampdsdd
seclen 1024
tracks 80
sectrk 5
blocksize 2048
maxdir 128
skew 0
boottrk 2
os 2.2
libdsk:format ampro400d
# DENSITY MFM ,LOW
# BSH 4 BLM 15 EXM 1 DSM 194 DRM 127 AL0 0C0H AL1 0 OFS 2
end
# BEGIN ampdsdd80 Ampro - DSDD 96 tpi 5.25" - 512 x 10
# Test OK - image size = 819,200, from Don Maslin's archive
diskdef ampdsdd80
seclen 1024
tracks 160
sectrk 5
blocksize 2048
maxdir 128
skew 0
boottrk 2
os 2.2
libdsk:format ampro800
# DENSITY MFM ,LOW
# BSH 4 BLM 15 EXM 1 DSM 194 DRM 127 AL0 0C0H AL1 0 OFS 2
end
# BEGIN altdsdd Altos - DSDD 5" - 512 x 9
# Test OK - both CP/M and MP/M - image size = 737,280, from Dave Dunfield
diskdef altdsdd
seclen 512
tracks 160
sectrk 9
blocksize 4096
maxdir 177
skew 0
boottrk 2
os 3
# DENSITY MFM ,HIGH
# BSH 5 BLM 31 EXM 3 DSM 176 DRM 176 AL0 0C0H AL1 0 OFS 2
end
# BEGIN trsomsssd TRS-80 Model 1, Omikron CP/M - SSSD 48 tpi 5.25" - 128 x 18
# Test OK - image size = 80,640, from TRS-80 Yahoo Group posting
diskdef trsomsssd
seclen 128
tracks 35
sectrk 18
blocksize 1024
maxdir 64
skew 4
boottrk 3
os 2.2
# DENSITY FM ,LOW
# BSH 3 BLM 7 EXM 0 DSM 71 DRM 63 AL0 0C0H AL1 0 OFS 3
end
# Memotech type 03, ie: 3.5" or 5.25", D/S, D/D, S/T
# 40 tracks, 2 sides, 16 sectors/track, 256 bytes/sector
# Bytes on the media = 2*40*16*256 = 327680
# CP/M sees 26 128 byte records per track (similar to 8" disks).
# Tracks = 327680/(26*128) = 98
# Data is in 2048 byte blocks, on track 2 onwards
# Blocks = ((98-2)*26*128)/2048 = 156, which agrees with DPB
diskdef memotech-type03
seclen 128
tracks 98
sectrk 26
blocksize 2048
maxdir 64
skew 1
boottrk 2
os 2.2
end
# Memotech type 07, ie: 3.5" or 5.25", D/S, D/D, D/T
# 80 tracks, 2 sides, 16 sectors/track, 256 bytes/sector
# Bytes on the media = 2*80*16*256 = 655360
# CP/M sees 26 128 byte records per track (similar to 8" disks).
# Tracks = 655360/(26*128) = 196
# Data is in 2048 byte blocks, on track 2 onwards
# Blocks = ((196-2)*26*128)/2048 = 315, which agrees with DPB
diskdef memotech-type07
seclen 128
tracks 196
sectrk 26
blocksize 2048
maxdir 128
skew 1
boottrk 2
os 2.2
end
# Memotech type 43, ie: 1MB Silicon Disc
# CP/M sees 26 128 byte records per track
# Note: Unlike common practice with real physical disks, with real geometry,
# the DPB for Silicon Discs includes blocks on the last incomplete track
# Tracks = 1048576/(26*128) = 315.07
# Data is in 4096 byte blocks, on track 2 onwards
# Blocks = (1048576-2*26*128)/4096 = 254, which agrees with DPB
# Blocks = ((315-2)*26*128)/4096 = 254, so we don't need the 0.07 track
diskdef memotech-type43
seclen 128
tracks 315
sectrk 26
blocksize 4096
maxdir 256
skew 1
boottrk 2
os 2.2
end
# Memotech type 47, ie: 2MB Silicon Disc
# CP/M sees 26 128 byte records per track
# Note: Unlike common practice with real physical disks, with real geometry,
# the DPB for Silicon Discs includes blocks on the last incomplete track
# Tracks = 2097152/(26*128) = 630.15
# Data is in 4096 byte blocks, on track 2 onwards
# Blocks = (2097152-2*26*128)/4096 = 510, which agrees with DPB
# Blocks = ((630-2)*26*128)/4096 = 510, so we don't need the 0.15 track
diskdef memotech-type47
seclen 128
tracks 630
sectrk 26
blocksize 4096
maxdir 256
skew 1
boottrk 2
os 2.2
end
# Memotech type 4B, ie: 4MB Silicon Disc
# CP/M sees 26 128 byte records per track
# Note: Unlike common practice with real physical disks, with real geometry,
# the DPB for Silicon Discs includes blocks on the last incomplete track
# Tracks = 4194304/(26*128) = 1260.3
# Data is in 4096 byte blocks, on track 2 onwards
# Blocks = (4194304-2*26*128)/4096 = 1022, which agrees with DPB
# Blocks = ((1260-2)*26*128)/4096 = 1022, so we don't need the 0.3 track
diskdef memotech-type4B
seclen 128
tracks 1260
sectrk 26
blocksize 4096
maxdir 512
skew 1
boottrk 2
os 2.2
end
# Memotech type 4F, ie: 8MB Silicon Disc
# CP/M sees 26 128 byte records per track
# Note: Unlike common practice with real physical disks, with real geometry,