xref: /freebsd/contrib/file/magic/Magdir/xo65 (revision a2dfb7224ec9933ee804cae54d51848dce938b6b)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*a2dfb722SXin LI# $File: xo65,v 1.5 2022/07/17 15:36:20 christos Exp $
4*a2dfb722SXin LI# https://cc65.github.io/doc/sim65.html
5b6cee71dSXin LI# xo65 object files
6b6cee71dSXin LI# From: "Ullrich von Bassewitz" <uz@cc65.org>
7b6cee71dSXin LI#
8b6cee71dSXin LI0	string		\x55\x7A\x6E\x61	xo65 object,
9b6cee71dSXin LI>4	leshort		x			version %d,
10b6cee71dSXin LI>6	leshort&0x0001 =0x0001			with debug info
11b6cee71dSXin LI>6	leshort&0x0001 =0x0000			no debug info
12b6cee71dSXin LI
13b6cee71dSXin LI# xo65 library files
14b6cee71dSXin LI0	string		\x6E\x61\x55\x7A	xo65 library,
15b6cee71dSXin LI>4	leshort		x			version %d
16b6cee71dSXin LI
17b6cee71dSXin LI# o65 object files
18b6cee71dSXin LI0	string		\x01\x00\x6F\x36\x35	o65
19b6cee71dSXin LI>6	leshort&0x1000	=0x0000			executable,
20b6cee71dSXin LI>6	leshort&0x1000	=0x1000			object,
21b6cee71dSXin LI>5	byte		x			version %d,
22b6cee71dSXin LI>6	leshort&0x8000	=0x8000			65816,
23b6cee71dSXin LI>6	leshort&0x8000	=0x0000			6502,
24b6cee71dSXin LI>6	leshort&0x2000	=0x2000			32 bit,
25b6cee71dSXin LI>6	leshort&0x2000	=0x0000			16 bit,
26b6cee71dSXin LI>6	leshort&0x4000	=0x4000			page reloc,
27b6cee71dSXin LI>6	leshort&0x4000	=0x0000			byte reloc,
28b6cee71dSXin LI>6	leshort&0x0003	=0x0000			alignment 1
29b6cee71dSXin LI>6	leshort&0x0003	=0x0001			alignment 2
30b6cee71dSXin LI>6	leshort&0x0003	=0x0002			alignment 4
31b6cee71dSXin LI>6	leshort&0x0003	=0x0003			alignment 256
32*a2dfb722SXin LI
33*a2dfb722SXin LI# sim65 executable files
34*a2dfb722SXin LI0	string		\x73\x69\x6d\x36\x35	sim65 executable,
35*a2dfb722SXin LI>5	byte		x			version %d,
36*a2dfb722SXin LI>6	leshort&0x0000	=0x0000			6502
37*a2dfb722SXin LI>6	leshort&0x0001	=0x0001			65C02
38