sinclair 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #------------------------------------------------------------------------------
  2. # $File$
  3. # sinclair: file(1) sinclair QL
  4. # additions to /etc/magic by Thomas M. Ott (ThMO)
  5. # Sinclair QL floppy disk formats (ThMO)
  6. 0 string =QL5 QL disk dump data,
  7. >3 string =A 720 KB,
  8. >3 string =B 1.44 MB,
  9. >3 string =C 3.2 MB,
  10. >4 string >\0 label:%.10s
  11. # Sinclair QL OS dump (ThMO)
  12. # (NOTE: if `file' would be able to use indirect references in a endian format
  13. # differing from the natural host format, this could be written more
  14. # reliably and faster...)
  15. #
  16. # we *can't* lookup QL OS code dumps, because `file' is UNABLE to read more
  17. # than the first 8K of a file... #-(
  18. #
  19. #0 belong =0x30000
  20. #>49124 belong <47104
  21. #>>49128 belong <47104
  22. #>>>49132 belong <47104
  23. #>>>>49136 belong <47104 QL OS dump data,
  24. #>>>>>49148 string >\0 type %.3s,
  25. #>>>>>49142 string >\0 version %.4s
  26. # Sinclair QL firmware executables (ThMO)
  27. 0 string NqNqNq`\004 QL firmware executable (BCPL)
  28. # Sinclair QL libraries (was ThMO)
  29. 0 beshort 0xFB01 QDOS object
  30. >2 pstring x '%s'
  31. # Sinclair QL executables (was ThMO)
  32. 4 belong 0x4AFB QDOS executable
  33. >9 pstring x '%s'
  34. # Sinclair QL ROM (ThMO)
  35. 0 belong =0x4AFB0001 QL plugin-ROM data,
  36. >9 pstring =\0 un-named
  37. >9 pstring >\0 named: %s