Disk updates (including COMPAQ MS-DOS 3.00)
This commit is contained in:
parent
31ed4d8da5
commit
2b6dc0153f
14 changed files with 307 additions and 190 deletions
|
|
@ -408,11 +408,11 @@ DiskDump.sNotice = DiskDump.sAPIURL + " " + DiskDump.sCopyright;
|
|||
DiskDump.sUsage = "Usage: " + DiskDump.sAPIURL + "?" + DumpAPI.QUERY.PATH + "={url}&" + DumpAPI.QUERY.FORMAT + "=json|data|hex|bytes|img";
|
||||
|
||||
/*
|
||||
* MY_VOL_LABEL is our default label, used whenever a more suitable label (eg, the disk image's folder name)
|
||||
* is not available or not supplied, and MY_OEM_STRING is inserted into any DiskDump-generated diskette images.
|
||||
* PCJS_LABEL is our default label, used whenever a more suitable label (eg, the disk image's folder name)
|
||||
* is not available or not supplied, and PCJS_OEM is inserted into any DiskDump-generated diskette images.
|
||||
*/
|
||||
DiskDump.MY_VOL_LABEL = "PCJSDISK";
|
||||
DiskDump.MY_OEM_STRING = "PCJS.ORG";
|
||||
DiskDump.PCJS_LABEL = "PCJSDISK";
|
||||
DiskDump.PCJS_OEM = "PCJS.ORG";
|
||||
|
||||
/**
|
||||
* The BPBs that buildImage() currently supports; these BPBs should be in order of smallest to largest capacity,
|
||||
|
|
@ -426,7 +426,7 @@ DiskDump.MY_OEM_STRING = "PCJS.ORG";
|
|||
DiskDump.aDefaultBPBs = [
|
||||
[ // define BPB for 160Kb diskette
|
||||
0xEB, 0xFE, 0x90, // 0x00: JMP instruction, following by 8-byte OEM signature
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // MY_OEM_STRING
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // PCJS_OEM
|
||||
// 0x49, 0x42, 0x4D, 0x20, 0x20, 0x31, 0x2E, 0x30, // "IBM 1.0" (this is a fake OEM signature)
|
||||
0x00, 0x02, // 0x0B: bytes per sector (0x200 or 512)
|
||||
0x01, // 0x0D: sectors per cluster (1)
|
||||
|
|
@ -442,7 +442,7 @@ DiskDump.aDefaultBPBs = [
|
|||
],
|
||||
[ // define BPB for 360Kb diskette
|
||||
0xEB, 0xFE, 0x90, // 0x00: JMP instruction, following by 8-byte OEM signature
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // MY_OEM_STRING
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // PCJS_OEM
|
||||
// 0x49, 0x42, 0x4D, 0x20, 0x20, 0x32, 0x2E, 0x30, // "IBM 2.0" (this is a real OEM signature)
|
||||
0x00, 0x02, // 0x0B: bytes per sector (0x200 or 512)
|
||||
0x02, // 0x0D: sectors per cluster (2)
|
||||
|
|
@ -458,7 +458,7 @@ DiskDump.aDefaultBPBs = [
|
|||
],
|
||||
[ // define BPB for 720Kb diskette
|
||||
0xEB, 0xFE, 0x90, // 0x00: JMP instruction, following by 8-byte OEM signature
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // MY_OEM_STRING
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // PCJS_OEM
|
||||
// 0x49, 0x42, 0x4D, 0x20, 0x20, 0x35, 0x2E, 0x30, // "IBM 5.0" (this is a real OEM signature)
|
||||
0x00, 0x02, // 0x0B: bytes per sector (0x200 or 512)
|
||||
0x02, // 0x0D: sectors per cluster (2)
|
||||
|
|
@ -474,7 +474,7 @@ DiskDump.aDefaultBPBs = [
|
|||
],
|
||||
[ // define BPB for 1.2Mb diskette
|
||||
0xEB, 0xFE, 0x90, // 0x00: JMP instruction, following by 8-byte OEM signature
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // MY_OEM_STRING
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // PCJS_OEM
|
||||
// 0x49, 0x42, 0x4D, 0x20, 0x31, 0x30, 0x2E, 0x31, // "10.0" (which I believe was used on IBM OS/2 1.0 diskettes)
|
||||
0x00, 0x02, // 0x0B: bytes per sector (0x200 or 512)
|
||||
0x01, // 0x0D: sectors per cluster (1)
|
||||
|
|
@ -490,7 +490,7 @@ DiskDump.aDefaultBPBs = [
|
|||
],
|
||||
[ // define BPB for 1.44Mb diskette
|
||||
0xEB, 0xFE, 0x90, // 0x00: JMP instruction, following by 8-byte OEM signature
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // MY_OEM_STRING
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // PCJS_OEM
|
||||
// 0x4d, 0x53, 0x44, 0x4F, 0x53, 0x35, 0x2E, 0x30, // "MSDOS5.0" (an actual OEM signature, arbitrarily chosen for use here)
|
||||
0x00, 0x02, // 0x0B: bytes per sector (0x200 or 512)
|
||||
0x01, // 0x0D: sectors per cluster (1)
|
||||
|
|
@ -506,7 +506,7 @@ DiskDump.aDefaultBPBs = [
|
|||
],
|
||||
[ // define BPB for 10Mb hard drive
|
||||
0xEB, 0xFE, 0x90, // 0x00: JMP instruction, following by 8-byte OEM signature
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // MY_OEM_STRING
|
||||
0x50, 0x43, 0x4A, 0x53, 0x2E, 0x4F, 0x52, 0x47, // PCJS_OEM
|
||||
// 0x49, 0x42, 0x4D, 0x20, 0x20, 0x32, 0x2E, 0x30, // "IBM 2.0" (this is a real OEM signature)
|
||||
0x00, 0x02, // 0x0B: bytes per sector (0x200 or 512)
|
||||
0x08, // 0x0D: sectors per cluster (8)
|
||||
|
|
@ -1661,7 +1661,7 @@ DiskDump.prototype.readPath = function(sPath, done)
|
|||
var asFiles = sPath.split(';');
|
||||
var sDefaultPath = "";
|
||||
|
||||
var fileInfo = this.buildVolLabel();
|
||||
var fileInfo = this.buildVolLabel(this.sLabel);
|
||||
if (fileInfo) {
|
||||
aFiles.push(fileInfo);
|
||||
// this.addManifestInfo(fileInfo);
|
||||
|
|
@ -1832,7 +1832,7 @@ DiskDump.prototype.buildVolLabel = function(sDir)
|
|||
}
|
||||
}
|
||||
if (!sVolume) {
|
||||
sVolume = DiskDump.MY_VOL_LABEL;
|
||||
sVolume = DiskDump.PCJS_LABEL;
|
||||
}
|
||||
if (sVolume && sVolume.length <= 11) {
|
||||
fileInfo = {};
|
||||
|
|
@ -3094,7 +3094,7 @@ DiskDump.prototype.convertToIMG = function()
|
|||
/*
|
||||
* Overwrite the OEM string with our own, so that people know how the image originated
|
||||
*/
|
||||
buf.write(DiskDump.MY_OEM_STRING, DiskAPI.BOOT.OEM_STRING, DiskDump.MY_OEM_STRING.length);
|
||||
buf.write(DiskDump.PCJS_OEM, DiskAPI.BOOT.OEM_STRING, DiskDump.PCJS_OEM.length);
|
||||
}
|
||||
}
|
||||
} catch(err) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue