# 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	0x0359				for Alpha
>0	short	0x000A				for IA64
>0	short	0x0329				for Intel x86
>0	short	0x032D				for Intel x86
>0	short	0x03AD				for Intel x86
>0	short	0x0339				for Intel x86
>0	short	0x033D				for Intel x86
>0	short	0x03BD				for Intel x86
>0	short	0x0105				for 390
>0	short	0x0009				for PA-RISC 1.1
>0	short	0x0007				for RS/6000
>0	short	0x0801				for SPARC
#
#  32-bit .lbr file and .int start the same - check .lbr first
0	string	Micro\ Focus\ COBOL\ Library 	Micro Focus 32-bit library file
0	string	Micro\ Focus 		Micro Focus 32-bit intermediate code file
#
#  Old 32-bit .int file
0	string	VS\ COBOL 		Micro Focus 32-bit intermediate code file
#
#  An incomplete/invalid 32bit .int file
0	string	Compilation\ not\ succ	Micro Focus 32-bit intermediate code file
>20	string	essfully\ completed	(incomplete/invalid)
#
#  An .idy file
0	string	Animator\ information\ file	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	0x0359				for Alpha
>8	short	0x000A				for IA64
>8	short	0x0009				for PA-RISC 2.0
>8	short	0x0007				for AIX PowerPC
>8	short	0x8007				for Linux PowerPC
>8	short	0x0801				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	\ Session\ V		Micro Focus keystroke file
#
#  Screen recording (.scr) files
4	string	\ Screen\ Recorder\ V	Micro Focus screen recording file
#
#  MFTRACE output file
4	string	MFTRACE\  		Micro Focus trace file
>2	short	0x0000				(encoded)
>12	string	Text\ Emitter			(text)
#
# End of Micro Focus format files
#
