[cc65] file(1) signatures

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-31 23:58:11


Just out of fun I've played with the file command and created signatures that
enables it to identify files generated by the cc65 tools. Maybe they're useful
for someone else:

-----------------------------------------------------------------------------
# xo65 object files
0       string          \x55\x7A\x6E\x61        xo65 object,
>4      leshort         x                       version %d,
>6      leshort&0x0001 =0x0001                  with debug info
>6      leshort&0x0001 =0x0000                  no debug info

# xo65 library files
0       string          \x6E\x61\x55\x7A        xo65 library,
>4      leshort         x                       version %d

# o65 object files
0       string          \x01\x00\x6F\x36\x35    o65
>6      leshort&0x1000  =0x0000                 executable,
>6      leshort&0x1000  =0x1000                 object,
>5      byte            x                       version %d,
>6      leshort&0x8000  =0x8000                 65816,
>6      leshort&0x8000  =0x0000                 6502,
>6      leshort&0x2000  =0x2000                 32 bit,
>6      leshort&0x2000  =0x0000                 16 bit,
>6      leshort&0x4000  =0x4000                 page reloc,
>6      leshort&0x4000  =0x0000                 byte reloc,
>6      leshort&0x0003  =0x0000                 align=1
>6      leshort&0x0003  =0x0001                 align=2
>6      leshort&0x0003  =0x0002                 align=4
>6      leshort&0x0003  =0x0003                 align=256
-----------------------------------------------------------------------------

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-31 23:59:06 CET