display-name: "Z-Experimental/Golden Axe"

if (file.name like "*.dat")
{
	interpret-as "exe-DOS"
}

if (file.name like ["*.mdi", "*.map", "*.chr"])
{
	file[1]
	{
		//lz-readmethod: "8LToH"
		offset: 0xA
		size: file.size - 0xA
		lz-start: 257
		lz-maxbits: 9
		//lz-reset-to: 12
		compressed "LZW"
		name: "Decompressed"
		decompressed-size: 0x580
	}
}

if (file.name like "*.spr")
{
	unsigned16 file-count
	file[file-count]
	{
		unsigned16 offset
		
		unsigned16 size

		lz-startlocation: 0xA
		//lz-readmethod: "8LToH"

		skip-if offset == 0xFFFF

		offset = offset << 4
		size = size << 4
		
		lz-start: 258
		lz-maxbits: 11
		//lz-reset-to: 12
		compressed "LZW"
		name: "Decompressed"
		decompressed-size: 0x580
	}
}