# Micro Focus format files
#
# @(#)cobmagic.app	6.2
#
#  32-bit .gnt file - the magic number is actually in the .data section
#  but we can't offset to that, so we use the following constants.
20	string	.text			Micro Focus
>18	short	0x0304				Server Express
>18	short	0x0403				Server Express
>18	short	0x0204				COBOL
>18	short	0x0402				COBOL
>4	long	0				32-bit generated code file
>4	long	>0				unknown format file
>0	short	0x5903				for Alpha
>0	short	0x0A00				for IA64
>0	short	0x2903				for Intel x86
>0	short	0x2D03				for Intel x86
>0	short	0xAD03				for Intel x86
>0	short	0x3903				for Intel x86
>0	short	0x3D03				for Intel x86
>0	short	0xBD03				for Intel x86
>0	short	0x0501				for 390
>0	short	0x0900				for PA-RISC 1.1
>0	short	0x0700				for RS/6000
>0	short	0x0108				for SPARC
#
#  32-bit .lbr file and .int start the same - check .lbr first
0	string	0x4D6963726F20466F63757320434F424F4C204C69627261727920	Micro Focus 32-bit library file
0	string	0x4D6963726F20466F63757320	Micro Focus 32-bit intermediate code file
#
#  Old 32-bit .int file
0	string	0x565320434F424F4C20	Micro Focus 32-bit intermediate code file
#
#  An incomplete/invalid 32bit .int file
0	string	0x436F6D70696C6174696F6E206E6F742073756363	Micro Focus 32-bit intermediate code file (incomplete/invalid)
#
#  An .idy file
0	string	0x416E696D61746F7220696E666F726D6174696F6E2066696C6520	Micro Focus 32-bit Animator information file
#
#  64-bit .gnt code - the magic is actually \0MRNGNT\0
1	string	MRNGNT			Micro Focus 64-bit generated code file
>8	short	0x0000				(incomplete/invalid)
>8	short	0x5903				for Alpha
>8	short	0x0A00				for IA64
>8	short	0x0900				for PA-RISC 2.0
>8	short	0x0700				for AIX PowerPC
>8	short	0x0780				for Linux PowerPC
>8	short	0x0108				for SPARCV9
#
#  64-bit .int/.lbr/.idy code - the magic is actually \0MRNxxx\0
1	string	MRN			Micro Focus 64-bit
>4	string	LBR				library file
>4	string	INT				intermediate code file
>4	string	IDY				Animator information file
>8	short	0x0000				(incomplete/invalid)
#
#  Keystroke (.key) files
14	string	0x2053657373696F6E2056	Micro Focus keystroke file
#
#  Screen recording (.scr) files
4	string	0x2053637265656E205265636f726465722056	Micro Focus screen recording file
#
#  MFTRACE output file
4	string	0x4D4654524134520	Micro Focus trace file
>2	short	0x0000				(encoded)
>12	string	0x5465787420456d6974746572	(text)
#
# End of Micro Focus format files
#
