#==========================================================
#                  diskdef collection for                 =
#                  MITS ALTAIR SIMH CP/M 2.2              =
# A-G: MITS2                                              =
# H  : MITS                                               =
# I-P: format=<default HDSK>                              =
#==========================================================

# 128K FLASH (EZ80FL)--------------------------------------
# format=EZ80FL
# geom=32/32/128
diskdef EZ80FL
  seclen 512
  tracks 32
  sectrk 8
  blocksize 1024
  maxdir 64
  skew 0
  boottrk 0
  os 2.2
end

# 1.44M (P112)---------------------------------------------
# format=P112
# geom=160/72/128
diskdef P112
  seclen 512
  tracks 160
  sectrk 18
  blocksize 2048
  maxdir 256
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Osborne1 5.25" SS SD (OSB1)-------------------------------
# format=OSB1
# geom=40/20/128
diskdef OSB1
  seclen 512
  tracks 40
  sectrk 5
  blocksize 2048
  maxdir 64
  skew 0
#  skewtab 
  boottrk 3
  os 2.2
end

# Osborne1 5.25" SS DD (OSB2)-------------------------------
# format=OSB2
# geom=40/40/128
diskdef OSB2
  seclen 512
  tracks 40
  sectrk 10
  blocksize 1024
  maxdir 64
  skew 0
#  skewtab 
  boottrk 3
  os 2.2
end

# Standard 8" SS DD (SSDD8)---------------------------------
# format=SSDD8
# geom=77/52/128
diskdef SSDD8
  seclen 256
  tracks 77
  sectrk 26
  blocksize 2048
  maxdir 128
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Standard 8" DS DD (DSDD8)-------------------------------
# format=DSDD8
# geom=154/52/128
diskdef DSDD8
  seclen 256
  tracks 154
  sectrk 26
  blocksize 2048
  maxdir 128
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Standard 8" DS DD with skew (DSDD8S)----------------------
# format=DSDD8S
# geom=154/52/128
diskdef DSDD8S
  seclen 256
  tracks 154
  sectrk 26
  blocksize 2048
  maxdir 128
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Standard 8" SS DD with 512 byte sectors (512SSDD8)--------
# format=512SSDD8
# geom=77/60/128
diskdef 512SSDD8
  seclen 512
  tracks 77
  sectrk 15
  blocksize 2048
  maxdir 128
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Standard 8" DS DD with 512 byte sectors (512DSDD8)--------
# format=512DSDD8
# geom=154/60/128
diskdef 512DSDD8
  seclen 512
  tracks 154
  sectrk 15
  blocksize 2048
  maxdir 128
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Visual Technology Visual 1050 (V1050)---------------------
# format=V1050
# geom=80/40/128
diskdef V1050
  seclen 512
  tracks 80
  sectrk 10
  blocksize 2048
  maxdir 128
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Standard 8" SS SD (SSSD8)---------------------------------
# format=SSSD8
diskdef SSSD8
  seclen 128
  tracks 77
  sectrk 26
  blocksize 1024
  maxdir 64
  skew 0
#  skewtab 
  boottrk 2
  os 2.2
end

# Standard 8" SS SD with skew (SSSD8S)----------------------
# format=SSSD8S
diskdef SSSD8S
  seclen 128
  tracks 77
  sectrk 26
  blocksize 1024
  maxdir 64
#  skew 0
  skewtab 0,6,12,18,24,4,10,16,22,2,8,14,20,1,7,13,19,25,5,11,17,23,3,9,15,21
  boottrk 2
  os 2.2
end

# Apple II PRODOS, deblocked (APPLE-P2)---------------------
# format=APPLE-P2
diskdef APPLE-P2
  seclen 128
  tracks 35
  sectrk 32
  blocksize 1024
  maxdir 64
  skewtab 0,1,18,19,6,7,24,25,12,13,30,31,2,3,20,21,8,9,26,27,14,15,16,17,4,5,22,23,10,11,28,29
  boottrk 3
  os 2.2
end

# Apple II DOS 3.3, deblocked (APPLE-D2)--------------------
# format=APPLE-D2
diskdef APPLE-D2
  seclen 128
  tracks 35
  sectrk 32
  blocksize 1024
  maxdir 64
  skewtab 0,1,12,13,24,25,6,7,18,19,30,31,28,29,10,11,22,23,4,5,16,17,14,15,26,27,8,9,20,21,2,3
  boottrk 3
  os 2.2
end

# AZ80 HDSK (HDSK) ALTAIR SIMH 8MB Standard Hard Disk. for I-P drive default.
diskdef HDSK
  seclen 128
  tracks 2048
  sectrk 32
  blocksize 4096
  maxdir 1024
  skew 0
  boottrk 6
  os 2.2
end

# MITS Altair original (MITS) 88-DISK(Pertec FD-400) for only make filesystem.
# sector = header + data + trailer = 3 + 128 + 6 = 137
# This definition is valid only on CpmtoolsGUI Ver.1.02 or later.
diskdef MITS-Mkfs
  seclen 137
  tracks 77
  sectrk 32
  blocksize 1024
  maxdir 256
  skewtab 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
  boottrk 6
  os 2.2
end

# MITS Altair original (MITS) 88-DISK(Pertec FD-400) for H drive.
# sector = header + data + trailer = 3 + 128 + 6 = 137
# This definition is valid only on CpmtoolsGUI Ver.1.02 or later.
# tracks is 77 but BIOS DSM=254 = 63.75 tracks! What should I do?
# The writing is possible, but the reading may fail!
diskdef MITS
  seclen 137
  tracks 69
  sectrk 32
  blocksize 1024
  maxdir 256
  skew 17
  boottrk 6
  os 2.2
end

# MITS Altair original, extra (MITS2) 88-DISK(extended) for make filesystem.
# sector = header + data + trailer = 3 + 128 + 6 = 137
# This definition is valid only on CpmtoolsGUI Ver.1.02 or later.
diskdef MITS2-Mkfs
  seclen 137
  tracks 254
  sectrk 32
  blocksize 2048
  maxdir 256
  skewtab 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
  boottrk 6
  os 2.2
end

# MITS Altair original, extra (MITS2) 88-DISK(extended) for A-G drive.
# sector = header + data + trailer = 3 + 128 + 6 = 137
# This definition is valid only on CpmtoolsGUI Ver.1.02 or later.
diskdef MITS2
  seclen 137
  tracks 254
  sectrk 32
  blocksize 2048
  maxdir 256
  skew 17
  boottrk 6
  os 2.2
end
