xref: /dragonfly/contrib/file/magic/Magdir/c64 (revision 8f2ce533)
1
2#------------------------------------------------------------------------------
3# $File: c64,v 1.9 2021/04/26 15:56:00 christos Exp $
4# c64:  file(1) magic for various commodore 64 related files
5#
6# From: Dirk Jagdmann <doj@cubic.org>
7
80x16500	belong		0x12014100	D64 Image
90x16500	belong		0x12014180	D71 Image
100x61800 belong		0x28034400	D81 Image
110	string		C64\40CARTRIDGE	CCS C64 Emultar Cartridge Image
120	belong		0x43154164	X64 Image
13
140	string		GCR-1541	GCR Image
15>8	byte		x		version: %i
16>9	byte		x		tracks: %i
17
189	string		PSUR		ARC archive (c64)
192	string		-LH1-		LHA archive (c64)
20
210	string		C64File		PC64 Emulator file
22>8	string		>\0		"%s"
230	string		C64Image	PC64 Freezer Image
24
250	beshort		0x38CD		C64 PCLink Image
260	string		CBM\144\0\0	Power 64 C64 Emulator Snapshot
27
280	belong		0xFF424CFF	WRAptor packer (c64)
29
300	string		C64S\x20tape\x20file	T64 tape Image
31>32	leshort		x		Version:%#x
32>36	leshort		!0		Entries:%i
33>40	string		x		Name:%.24s
34
350	string		C64\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0	T64 tape Image
36>32	leshort		x		Version:%#x
37>36	leshort		!0		Entries:%i
38>40	string		x		Name:%.24s
39
400	string		C64S\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0	T64 tape Image
41>32	leshort		x		Version:%#x
42>36	leshort		!0		Entries:%i
43>40	string		x		Name:%.24s
44
45# Raw tape file format (.tap files)
46# Esa Hyyti <esa@netlab.tkk.fi>
470	string		C64-TAPE-RAW	C64 Raw Tape File (.tap),
48>0x0c	byte		x		Version:%u,
49>0x10	lelong		x		Length:%u cycles
50
51# magic for Goattracker2, http://covertbitops.c64.org/
52# from Alex Myczko <alex@aiei.ch>
530	string		GTS5		GoatTracker 2 song
54>4	string		>\0		\b, "%s"
55>36	string		>\0		\b by %s
56>68	string		>\0		\b (C) %s
57>100	byte		>0		\b, %u subsong(s)
58
59# CBM BASIC (cc65 compiled)
600	leshort		0x0801
61>2	leshort		0x080b
62>6	string		\x9e		CBM BASIC
63>7	string		>\0		\b, SYS %s
64