c64 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. #------------------------------------------------------------------------------
  2. # $File: c64,v 1.12 2022/05/14 20:03:39 christos Exp $
  3. # c64: file(1) magic for various commodore 64 related files
  4. #
  5. # From: Dirk Jagdmann <doj@cubic.org>
  6. 0x16500 belong 0x12014100 D64 Image
  7. 0x16500 belong 0x12014180 D71 Image
  8. 0x61800 belong 0x28034400 D81 Image
  9. 0 belong 0x43154164 X64 Image
  10. # C64 (and other CBM) cartridges
  11. # Extended by David Korth <gerbilsoft@gerbilsoft.com>
  12. # Reference: https://vice-emu.sourceforge.io/vice_17.html#SEC391
  13. 0 string C64\40CARTRIDGE Commodore 64 cartridge
  14. >0x20 ubyte 0 \b,
  15. >0x20 ubyte !0
  16. >>0x20 string/T x \b: "%.32s",
  17. >0x16 beshort 0
  18. >>0x18 beshort 0x0000 16 KB game
  19. >>0x18 beshort 0x0001 8 KB game
  20. >>0x18 beshort 0x0100 UltiMax mode
  21. >>0x18 beshort 0x0101 RAM/disabled
  22. >0x16 beshort 1 Action Replay
  23. >0x16 beshort 2 KCS Power Cartridge
  24. >0x16 beshort 3 Final Cartridge III
  25. >0x16 beshort 4 Simons' BASIC
  26. >0x16 beshort 5 Ocean type 1
  27. >0x16 beshort 6 Expert Cartridge
  28. >0x16 beshort 7 Fun Play, Power Play
  29. >0x16 beshort 8 Super Games
  30. >0x16 beshort 9 Atomic Power
  31. >0x16 beshort 10 Epyx Fastload
  32. >0x16 beshort 11 Westermann Learning
  33. >0x16 beshort 12 Rex Utility
  34. >0x16 beshort 13 Final Cartridge I
  35. >0x16 beshort 14 Magic Formel
  36. >0x16 beshort 15 C64 Game System, System 3
  37. >0x16 beshort 16 Warp Speed
  38. >0x16 beshort 17 Dinamic
  39. >0x16 beshort 18 Zaxxon / Super Zaxxon (Sega)
  40. >0x16 beshort 19 Magic Desk, Domark, HES Australia
  41. >0x16 beshort 20 Super Snapshot V5
  42. >0x16 beshort 21 Comal-80
  43. >0x16 beshort 22 Structured BASIC
  44. >0x16 beshort 23 Ross
  45. >0x16 beshort 24 Dela EP64
  46. >0x16 beshort 25 Dela EP7x8
  47. >0x16 beshort 26 Dela EP256
  48. >0x16 beshort 27 Rex EP256
  49. >0x16 beshort 28 Mikro Assembler
  50. >0x16 beshort 29 Final Cartridge Plus
  51. >0x16 beshort 30 Action Replay 4
  52. >0x16 beshort 31 Stardos
  53. >0x16 beshort 32 EasyFlash
  54. >0x16 beshort 33 EasyFlash Xbank
  55. >0x16 beshort 34 Capture
  56. >0x16 beshort 35 Action Replay 3
  57. >0x16 beshort 36
  58. >>0x1A ubyte 1 Nordic Replay
  59. >>0x1A ubyte !1 Retro Replay
  60. >0x16 beshort 37 MMC64
  61. >0x16 beshort 38 MMC Replay
  62. >0x16 beshort 39 IDE64
  63. >0x16 beshort 40 Super Snapshot V4
  64. >0x16 beshort 41 IEEE-488
  65. >0x16 beshort 42 Game Killer
  66. >0x16 beshort 43 Prophet64
  67. >0x16 beshort 44 EXOS
  68. >0x16 beshort 45 Freeze Frame
  69. >0x16 beshort 46 Freeze Machine
  70. >0x16 beshort 47 Snapshot64
  71. >0x16 beshort 48 Super Explode V5.0
  72. >0x16 beshort 49 Magic Voice
  73. >0x16 beshort 50 Action Replay 2
  74. >0x16 beshort 51 MACH 5
  75. >0x16 beshort 52 Diashow-Maker
  76. >0x16 beshort 53 Pagefox
  77. >0x16 beshort 54 Kingsoft
  78. >0x16 beshort 55 Silverrock 128K Cartridge
  79. >0x16 beshort 56 Formel 64
  80. >0x16 beshort 57
  81. >>0x1A ubyte 1 Hucky
  82. >>0x1A ubyte !1 RGCD
  83. >0x16 beshort 58 RR-Net MK3
  84. >0x16 beshort 59 EasyCalc
  85. >0x16 beshort 60 GMod2
  86. >0x16 beshort 61 MAX Basic
  87. >0x16 beshort 62 GMod3
  88. >0x16 beshort 63 ZIPP-CODE 48
  89. >0x16 beshort 64 Blackbox V8
  90. >0x16 beshort 65 Blackbox V3
  91. >0x16 beshort 66 Blackbox V4
  92. >0x16 beshort 67 REX RAM-Floppy
  93. >0x16 beshort 68 BIS-Plus
  94. >0x16 beshort 69 SD-BOX
  95. >0x16 beshort 70 MultiMAX
  96. >0x16 beshort 71 Blackbox V9
  97. >0x16 beshort 72 Lt. Kernal Host Adaptor
  98. >0x16 beshort 73 RAMLink
  99. >0x16 beshort 74 H.E.R.O.
  100. >0x16 beshort 75 IEEE Flash! 64
  101. >0x16 beshort 76 Turtle Graphics II
  102. >0x16 beshort 77 Freeze Frame MK2
  103. 0 string C128\40CARTRIDGE Commodore 128 cartridge
  104. >0x20 ubyte 0 \b,
  105. >0x20 ubyte !0
  106. >>0x20 string/T x \b: "%.32s",
  107. >0x16 beshort 0 generic cartridge
  108. >0x16 beshort 1 Warpspeed128
  109. >>0x1A ubyte 1 \b, REU support
  110. >>0x1A ubyte 2 \b, REU support, with I/O and ROM banking
  111. 0 string CBM2\40CARTRIDGE Commodore CBM-II cartridge
  112. >0x20 ubyte !0
  113. >>0x20 string/T x \b: "%.32s"
  114. 0 string VIC20\40CARTRIDGE Commodore VIC-20 cartridge
  115. >0x20 ubyte 0 \b,
  116. >0x20 ubyte !0
  117. >>0x20 string/T x \b: "%.32s",
  118. >0x16 beshort 0 generic cartridge
  119. >0x16 beshort 1 Mega-Cart
  120. >0x16 beshort 2 Behr Bonz
  121. >0x16 beshort 3 Vic Flash Plugin
  122. >0x16 beshort 4 UltiMem
  123. >0x16 beshort 5 Final Expansion
  124. 0 string PLUS4\40CARTRIDGE Commodore 16/Plus4 cartridge
  125. >0x20 ubyte !0
  126. >>0x20 string/T x \b: "%.32s"
  127. # DreamLoad archives see:
  128. # https://www.lemon64.com/forum/viewtopic.php?t=37415\
  129. # &sid=494dc2ca91289e05dadf80a7f8a968fe (at the bottom).
  130. # https://www.c64-wiki.com/wiki/DreamLoad.
  131. # Example HVSC Commodore 64 music collection:
  132. # https://kohina.duckdns.org/HVSC/C64Music/10_Years_HVSC.dfi
  133. 0 byte 0
  134. >1 string DREAMLOAD\40FILE\40ARCHIVE
  135. >>0x17 byte 0 DFI Image
  136. >>>0x1a leshort x version: %d.
  137. >>>0x18 leshort x \b%d
  138. >>>0x1c lelong x tracks: %d
  139. 0 string GCR-1541 GCR Image
  140. >8 byte x version: %i
  141. >9 byte x tracks: %i
  142. 9 string PSUR ARC archive (c64)
  143. 2 string -LH1- LHA archive (c64)
  144. 0 string C64File PC64 Emulator file
  145. >8 string >\0 "%s"
  146. 0 string C64Image PC64 Freezer Image
  147. 0 beshort 0x38CD C64 PCLink Image
  148. 0 string CBM\144\0\0 Power 64 C64 Emulator Snapshot
  149. 0 belong 0xFF424CFF WRAptor packer (c64)
  150. 0 string C64S\x20tape\x20file T64 tape Image
  151. >32 leshort x Version:%#x
  152. >36 leshort !0 Entries:%i
  153. >40 string x Name:%.24s
  154. 0 string C64\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0 T64 tape Image
  155. >32 leshort x Version:%#x
  156. >36 leshort !0 Entries:%i
  157. >40 string x Name:%.24s
  158. 0 string C64S\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0 T64 tape Image
  159. >32 leshort x Version:%#x
  160. >36 leshort !0 Entries:%i
  161. >40 string x Name:%.24s
  162. # Raw tape file format (.tap files)
  163. # Esa Hyyti <esa@netlab.tkk.fi>
  164. 0 string C64-TAPE-RAW C64 Raw Tape File (.tap),
  165. >0x0c byte x Version:%u,
  166. >0x10 lelong x Length:%u cycles
  167. # magic for Goattracker2, http://covertbitops.c64.org/
  168. # from Alex Myczko <alex@aiei.ch>
  169. 0 string GTS5 GoatTracker 2 song
  170. >4 string >\0 \b, "%s"
  171. >36 string >\0 \b by %s
  172. >68 string >\0 \b (C) %s
  173. >100 byte >0 \b, %u subsong(s)
  174. # CBM BASIC (cc65 compiled)
  175. 0 leshort 0x0801
  176. >2 leshort 0x080b
  177. >6 string \x9e CBM BASIC
  178. >7 string >\0 \b, SYS %s