]> granicus.if.org Git - file/commitdiff
Added palm and spectrum
authorChristos Zoulas <christos@zoulas.com>
Thu, 14 Jan 1999 15:54:33 +0000 (15:54 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 14 Jan 1999 15:54:33 +0000 (15:54 +0000)
magic/Magdir/palm [new file with mode: 0644]
magic/Magdir/spectrum [new file with mode: 0644]

diff --git a/magic/Magdir/palm b/magic/Magdir/palm
new file mode 100644 (file)
index 0000000..46bc632
--- /dev/null
@@ -0,0 +1,15 @@
+
+#------------------------------------------------------------------------------
+# palm:  file(1) magic for PalmOS {.prc,.pdb}: applications, docfiles, and hacks
+#
+# Brian Lalor <blalor@hcirisc.cs.binghamton.edu>
+
+# appl
+60      belong                  0x6170706c      PalmOS application
+>0      string                  >\0             "%s"
+# TEXt
+60      belong                  0x54455874      AportisDoc file
+>0      string                  >\0             "%s"
+# HACK
+60      belong                  0x4841434b      HackMaster hack
+>0      string                  >\0             "%s"
diff --git a/magic/Magdir/spectrum b/magic/Magdir/spectrum
new file mode 100644 (file)
index 0000000..e7a5549
--- /dev/null
@@ -0,0 +1,28 @@
+
+#------------------------------------------------------------------------------
+# 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)