xref: /freebsd/contrib/file/magic/Magdir/c64 (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*43a5ec4eSXin LI# $File: c64,v 1.9 2021/04/26 15:56:00 christos Exp $
4b6cee71dSXin LI# c64:  file(1) magic for various commodore 64 related files
5b6cee71dSXin LI#
6b6cee71dSXin LI# From: Dirk Jagdmann <doj@cubic.org>
7b6cee71dSXin LI
8b6cee71dSXin LI0x16500	belong		0x12014100	D64 Image
9b6cee71dSXin LI0x16500	belong		0x12014180	D71 Image
10b6cee71dSXin LI0x61800 belong		0x28034400	D81 Image
11b6cee71dSXin LI0	string		C64\40CARTRIDGE	CCS C64 Emultar Cartridge Image
12b6cee71dSXin LI0	belong		0x43154164	X64 Image
13b6cee71dSXin LI
14b6cee71dSXin LI0	string		GCR-1541	GCR Image
15b6cee71dSXin LI>8	byte		x		version: %i
16b6cee71dSXin LI>9	byte		x		tracks: %i
17b6cee71dSXin LI
18b6cee71dSXin LI9	string		PSUR		ARC archive (c64)
19b6cee71dSXin LI2	string		-LH1-		LHA archive (c64)
20b6cee71dSXin LI
21b6cee71dSXin LI0	string		C64File		PC64 Emulator file
22b6cee71dSXin LI>8	string		>\0		"%s"
23b6cee71dSXin LI0	string		C64Image	PC64 Freezer Image
24b6cee71dSXin LI
25b6cee71dSXin LI0	beshort		0x38CD		C64 PCLink Image
26b6cee71dSXin LI0	string		CBM\144\0\0	Power 64 C64 Emulator Snapshot
27b6cee71dSXin LI
28b6cee71dSXin LI0	belong		0xFF424CFF	WRAptor packer (c64)
29b6cee71dSXin LI
30b6cee71dSXin LI0	string		C64S\x20tape\x20file	T64 tape Image
31*43a5ec4eSXin LI>32	leshort		x		Version:%#x
32b6cee71dSXin LI>36	leshort		!0		Entries:%i
33b6cee71dSXin LI>40	string		x		Name:%.24s
34b6cee71dSXin LI
35b6cee71dSXin LI0	string		C64\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0	T64 tape Image
36*43a5ec4eSXin LI>32	leshort		x		Version:%#x
37b6cee71dSXin LI>36	leshort		!0		Entries:%i
38b6cee71dSXin LI>40	string		x		Name:%.24s
39b6cee71dSXin LI
40b6cee71dSXin LI0	string		C64S\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0	T64 tape Image
41*43a5ec4eSXin LI>32	leshort		x		Version:%#x
42b6cee71dSXin LI>36	leshort		!0		Entries:%i
43b6cee71dSXin LI>40	string		x		Name:%.24s
449ce06829SXin LI
459ce06829SXin LI# Raw tape file format (.tap files)
469ce06829SXin LI# Esa Hyyti <esa@netlab.tkk.fi>
479ce06829SXin LI0	string		C64-TAPE-RAW	C64 Raw Tape File (.tap),
489ce06829SXin LI>0x0c	byte		x		Version:%u,
499ce06829SXin LI>0x10	lelong		x		Length:%u cycles
5058a0f0d0SEitan Adler
5158a0f0d0SEitan Adler# magic for Goattracker2, http://covertbitops.c64.org/
5258a0f0d0SEitan Adler# from Alex Myczko <alex@aiei.ch>
5358a0f0d0SEitan Adler0	string		GTS5		GoatTracker 2 song
5458a0f0d0SEitan Adler>4	string		>\0		\b, "%s"
5558a0f0d0SEitan Adler>36	string		>\0		\b by %s
5658a0f0d0SEitan Adler>68	string		>\0		\b (C) %s
5758a0f0d0SEitan Adler>100	byte		>0		\b, %u subsong(s)
5858a0f0d0SEitan Adler
59*43a5ec4eSXin LI# CBM BASIC (cc65 compiled)
60*43a5ec4eSXin LI0	leshort		0x0801
61*43a5ec4eSXin LI>2	leshort		0x080b
62*43a5ec4eSXin LI>6	string		\x9e		CBM BASIC
63*43a5ec4eSXin LI>7	string		>\0		\b, SYS %s
64