#stack 0
#pragma option w32     //create Windows GUI EXE.
#pragma option J0      //no startup code.
#pragma option w       //enable warning.
#pragma option 3       //386 CPU.
#pragma option OBJ     //create OBJ file
#define _WINBASE_ TRUE
#define _WINGDI_ TRUE
#include "windows.h--"

#pragma option ia      // allow inline asm

extern stdcall z_decode_asm();
extern stdcall get_size();
extern stdcall get_offset();

void main()
{
_start:
	// allocate memory for decompression
	get_size(); 
	EBX = GlobalAlloc(GPTR, EAX);

	// get offset to compressed text
	get_offset(); 

	// start decompression
	ESI = EAX; EDI = EBX;
	z_decode_asm();

	// display decompressed text
	MessageBox(0,EBX,"C-- & MASM",MB_ICONINFORMATION);
	ExitProcess(0);
}
