sinclair 1.2 KB

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