Skip to content

Discs and the DSK Editor

WacKEDmaN edited this page Nov 14, 2026 · 2 revisions

Discs and the DSK editor

The drives

The CPC 664, 6128 and Plus have a disc controller (the NEC uPD765A) and two drives, A and B. The 464 has no disc controller.

Use the Discs window or Media → Drive A / Drive B:

  • Insert... puts a disc image in the drive. You can also drop the file on the window (it goes into drive A).
  • Eject takes it out.
  • Edit (or Open in the DSK editor) opens the disc in the drive in the DSK editor, while the CPC uses it.

File → Open → Disk into drive A... / Disk into drive B... do the same.

Image formats

Format Notes
.dsk Standard DSK
.dsk, .edsk Extended DSK (weak sectors, odd sizes, copy protection)
.hfe The Gotek's format. The real position of each sector is kept, and unchanged tracks stay bit for bit.
.ipf SPS images (copy-protected originals). Write-protected.

Writes to the image

Media → Save disc and tape writes to their files:

  • On: what a program writes to a disc goes back into its image file, in that image's format.
  • Off: the changes stay in memory. You can save them from the DSK editor.

In the headless mode (refer to Command line) writes are off unless you give --disk-writeback.

The drive in real time

  • The disc turns at 300 rpm under a 250 kbit/s head.
  • The bytes of a sector come when the sector passes the head. HFE and IPF images give the real position of each sector.
  • A seek takes the step rate that the program sets. The drive is ready when the disc turns at full speed.
  • A program that is too slow for the bytes gets an overrun, as on a real CPC.
  • A 3-inch drive stops at track 42. An image with more tracks than that is in an 80-track drive (a 3.5-inch drive or a Gotek), so 80-track and double-size discs work.

Fast disc loading

The Discs window and the Media menu have two settings. Both are off until you turn them on.

  • Turbo: while the disc drive works, the whole CPC runs faster. Set the speed with the slider (up to 20 times, or unlimited). When the program starts, it runs at normal speed again. Every loader works, protected loaders too. The status bar shows DISC TURBO.
  • Instant loading:
    • The files and sectors that AMSDOS reads go into memory at once: LOAD, RUN", CAT, |CPM, and loaders that use AMSDOS's sector command. There is no wait for the motor and no wait for a seek.
    • Loaders that drive the disc controller themselves get each sector without a wait for the disc to turn. The bytes still come at the speed of a real drive, so the loader's read loop works as on a real CPC.
    • Protected sectors (CRC errors, deleted data, weak sectors) keep the timing of the disc.
    • It works with AMSDOS on the 464, 664, 6128 and the Plus, and with ParaDOS. Other DOS ROMs load at the normal speed: use Turbo for them.
    • The Discs window shows how many files and sectors were loaded this way.

Command line: --disc-instant (refer to Command line).

Disc formats and DOS ROMs

AMSDOS reads the DATA, SYSTEM and IBM formats. For bigger formats (for example 80-track, double-sided or ROMDOS formats), put a DOS such as ParaDOS in ROM 7 in the ROMs window. Refer to Machines and ROMs.

Some expansions change the current drive:

  • The M4 Board's ROM makes its SD card the current drive. Type |DISC before you load from a floppy.
  • With the SYMBiFACE III and no M4, its CubeMDOS ROM makes D: the current drive. Type |A to go back to the floppy.

The DSK editor

Open it with Tools → DSK editor, or with Edit for the disc in a drive.

New discs

Make a new disc in any CPC format: DATA, SYSTEM, IBM, 42 or 80 tracks, ParaDOS, ROMDOS, Vortex, Dobbertin, or your own geometry (tracks, sides, sectors, sector size, first sector ID).

Open discs

Open standard and extended images, or edit the disc in a drive while the CPC uses it.

The tabs

  • Disc: the format, the free space, save the image.
  • Files:
    • Import files from your PC, export files to your PC, delete, rename.
    • Change the user number and the flags (read-only, system).
    • View a file as hex, BASIC, text or Z80 code.
  • Map: a map of the blocks and the file that owns each.
  • Tracks & sectors: the sector IDs, the status bytes, the weak copies, and the bytes in a hex editor.

The Dobbertin HD20 hard disc

Expansions → Dobbertin HD20 (hard disc): choose an image file (File...), or Remove it. The HD20 is used with X-DDOS. Refer to Expansions.

Clone this wiki locally