2 #------------------------------------------------------------------------------
3 # spectrum: file(1) magic for Spectrum emulator files.
5 # John Elliott <jce@seasip.demon.co.uk>
8 # Spectrum +3DOS header
10 0 string PLUS3DOS\032 Spectrum +3 data
11 >15 byte 0 - BASIC program
12 >15 byte 1 - number array
13 >15 byte 2 - character array
14 >15 byte 3 - memory block
15 >>16 belong 0x001B0040 (screen)
16 >15 byte 4 - Tasword document
17 >15 string TAPEFILE - ZXT tapefile
19 # Tape file. This assumes the .TAP starts with a Spectrum-format header,
20 # which nearly all will.
22 0 string \023\000\000 Spectrum .TAP data
23 >4 string x "%-10.10s"
24 >3 byte 0 - BASIC program
25 >3 byte 1 - number array
26 >3 byte 2 - character array
27 >3 byte 3 - memory block
28 >>14 belong 0x001B0040 (screen)
30 # The following three blocks are from pak21-spectrum@srcf.ucam.org
32 0 string ZXTape!\x1a Spectrum .TZX data
36 # RZX input recording files
37 0 string RZX! Spectrum .RZX data
42 0 string MV\ -\ CPCEMU\ Disk-Fil Amstrad/Spectrum .DSK data
43 0 string MV\ -\ CPC\ format\ Dis Amstrad/Spectrum DU54 .DSK data
44 0 string EXTENDED\ CPC\ DSK\ Fil Amstrad/Spectrum Extended .DSK data
45 0 string SINCLAIR Spectrum .SCL Betadisk image
48 0 string RS-IDE\x1a Spectrum .HDF hard disk image
49 >7 byte x \b, version 0x%02x