Adding IBM PC 8-sector formats

This commit is contained in:
Brian Wheeler
2023-05-01 08:24:24 -04:00
parent d766e1f9a9
commit 134dd6c37d
4 changed files with 96 additions and 0 deletions

View File

@@ -198,6 +198,8 @@ $(call do-encodedecodetest,ibm1200)
$(call do-encodedecodetest,ibm1232)
$(call do-encodedecodetest,ibm1440)
$(call do-encodedecodetest,ibm180)
$(call do-encodedecodetest,ibm160)
$(call do-encodedecodetest,ibm320)
$(call do-encodedecodetest,ibm360)
$(call do-encodedecodetest,ibm720)
$(call do-encodedecodetest,mac400,scripts/mac400_test.textpb)

View File

@@ -46,7 +46,9 @@ FORMATS = \
ibm1232 \
ibm1440 \
ibm180 \
ibm160 \
ibm360 \
ibm320 \
ibm720 \
icl30 \
mac400 \

48
src/formats/ibm160.textpb Normal file
View File

@@ -0,0 +1,48 @@
comment: 'PC 160kB 5.25" 40-track 8-sector SSDD'
image_reader {
filename: "ibm160.img"
type: IMG
}
image_writer {
filename: "ibm160.img"
type: IMG
}
layout {
tracks: 40
sides: 1
layoutdata {
sector_size: 512
physical {
start_sector: 1
count: 8
}
}
}
encoder {
ibm {
trackdata {
target_rotational_period_ms: 167
target_clock_period_us: 3.333
}
}
}
decoder {
ibm {}
}
drive {
high_density: false
}
tpi: 48
filesystem {
type: FATFS
}

44
src/formats/ibm320.textpb Normal file
View File

@@ -0,0 +1,44 @@
comment: 'PC 320kB 5.25" 40-track 8-sector DSDD'
image_reader {
filename: "ibm320.img"
type: IMG
}
image_writer {
filename: "ibm320.img"
type: IMG
}
layout {
tracks: 40
sides: 2
layoutdata {
sector_size: 512
physical {
start_sector: 1
count: 8
}
}
}
encoder {
ibm {
trackdata {
target_rotational_period_ms: 167
target_clock_period_us: 3.333
}
}
}
decoder {
ibm {}
}
tpi: 48
filesystem {
type: FATFS
}