added OVR sector colour

This commit is contained in:
Denis Molony 2016-02-28 10:44:28 +11:00
parent 21e7f8f226
commit 174d604233

View File

@ -20,6 +20,7 @@ public class CPMDisk extends AbstractFormattedDisk
public final SectorType docSector = new SectorType ("DOC", Color.cyan);
public final SectorType basSector = new SectorType ("BAS", Color.gray);
public final SectorType asmSector = new SectorType ("ASM", Color.orange);
public final SectorType ovrSector = new SectorType ("OVR", Color.magenta);
private int version; // http://www.seasip.info/Cpm/format22.html
@ -34,6 +35,7 @@ public class CPMDisk extends AbstractFormattedDisk
sectorTypesList.add (basSector);
sectorTypesList.add (docSector);
sectorTypesList.add (asmSector);
sectorTypesList.add (ovrSector);
getDisk ().setEmptyByte ((byte) 0xE5);
setSectorTypes ();
@ -95,6 +97,8 @@ public class CPMDisk extends AbstractFormattedDisk
return prnSector;
if ("ASM".equals (type))
return asmSector;
if ("OVR".equals (type))
return ovrSector;
return dataSector;
}