freebsd-dev/contrib/file/Magdir/spectrum

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2000-11-05 08:33:55 +00:00
#------------------------------------------------------------------------------
# spectrum: file(1) magic for Spectrum emulator files.
#
# John Elliott <jce@seasip.demon.co.uk>
#
# Spectrum +3DOS header
#
0 string PLUS3DOS\032 Spectrum +3 data
>15 byte 0 - BASIC program
>15 byte 1 - number array
>15 byte 2 - character array
>15 byte 3 - memory block
>>16 belong 0x001B0040 (screen)
>15 byte 4 - Tasword document
>15 string TAPEFILE - ZXT tapefile
#
# Tape file. This assumes the .TAP starts with a Spectrum-format header,
# which nearly all will.
#
0 string \023\000\000 Spectrum .TAP data
>4 string x "%-10.10s"
>3 byte 0 - BASIC program
>3 byte 1 - number array
>3 byte 2 - character array
>3 byte 3 - memory block
>>14 belong 0x001B0040 (screen)