spectrum 2.0 KB

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