spectrum 1.1 KB

12345678910111213141516171819202122232425262728
  1. #------------------------------------------------------------------------------
  2. # spectrum: file(1) magic for Spectrum emulator files.
  3. #
  4. # John Elliott <jce@seasip.demon.co.uk>
  5. #
  6. # Spectrum +3DOS header
  7. #
  8. 0 string PLUS3DOS\032 Spectrum +3 data
  9. >15 byte 0 - BASIC program
  10. >15 byte 1 - number array
  11. >15 byte 2 - character array
  12. >15 byte 3 - memory block
  13. >>16 belong 0x001B0040 (screen)
  14. >15 byte 4 - Tasword document
  15. >15 string TAPEFILE - ZXT tapefile
  16. #
  17. # Tape file. This assumes the .TAP starts with a Spectrum-format header,
  18. # which nearly all will.
  19. #
  20. 0 string \023\000\000 Spectrum .TAP data
  21. >4 string x "%-10.10s"
  22. >3 byte 0 - BASIC program
  23. >3 byte 1 - number array
  24. >3 byte 2 - character array
  25. >3 byte 3 - memory block
  26. >>14 belong 0x001B0040 (screen)