summaryrefslogtreecommitdiff
path: root/phnxdeco/phnxhelp.h
blob: fbeefb8456547546108a2bb02f19c3cd653500b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**********************************************
**
**
**	Defines for PhnxHelp
**
**
***********************************************/

#include	<stdio.h>


byte HelpSystem(byte argc, byte * argv[])
{
    byte x = 0, retcode = 0;

    for (x = 1; x < argc; x++) {
	if (StrCmp(argv[x], "-h") == 0) {
	    printf("\n" SftName " HelpSystem Starting Now!\n");
	    printf("\nThis Program Version Number %s", SftVersion);

#ifndef __LINUX_NOW__
	    printf("\n" SftName " - Decompressor for PhoenixBIOSes only.\n" "\tSupported formats: Phoenix BIOS 4.0, Phoenix FirstBIOS\n\n" "" SftName
		   " performs on 386 or better CPU systems\n" "under control of DOS, Win3.xx, Win9x/NT/2K or DosEmu\n\n"
		   "Compression schemes include: NONE, LZSS, LZINT\n\n" "Modules marked with " IDSign " sign are compressed modules\n\n"
		   "\tBug reports mailto: " SftEMail "\n" "\t\tCompiled: %s, %s\n", __DATE__, __TIME__);
#else
	    printf("\n" SftName " - Decompressor for PhoenixBIOSes only.\n" "\tSupported formats: Phoenix BIOS 4.0, Phoenix FirstBIOS\n\n" "" SftName
		   " performs on 386 or better CPU systems\n" "under control of LinuxOS\n\n" "Compression schemes include: NONE, LZSS, LZINT\n\n"
		   "Modules marked with " IDSign " sign are compressed modules\n\n" "\tBug reports mailto: " SftEMail "\n" "\t\tCompiled: %s, %s with \n\t\t%s",
		   __DATE__, __TIME__, __VERSION__);
#endif
	    printf("\n");
	    retcode = 0x80;

	}

	if (StrCmp(argv[x], "-xs") == 0)
	    retcode = 0x20;
	if (StrCmp(argv[x], "-ls") == 0)
	    retcode = 0x21;
	if (StrCmp(argv[x], "-x") == 0)
	    retcode = 0x10;
	if (StrCmp(argv[x], "-l") == 0)
	    retcode = 0x11;
	if (StrCmp(argv[x], "-c") == 0)
	    retcode += 0x40;
    }
    return (retcode);

}

void PrintHeader(byte * EOL)
{

    printf("\n%c%s%c%s", 0x4, SoftName, 0x4, EOL);

}

void PrintUsage()
{

    PrintHeader("");
    printf("%s", CopyRights);
    printf("\n\nUsage: PhnxDeco <PhoenixBIOS.ROM> [Options]");
    printf("\n" "\t\tOptions:" "\n\t\t\t\"-ls\" List (System) Bios Structure" "\n\t\t\t\"-xs\" eXtract (System) Bios Modules"
	   "\n\t\t\t\"-l\" List Bios Structure" "\n\t\t\t\"-x\" eXtract Bios Modules" "\n\t\t\t\"-c\" show Bios Copyrights" "\n\t\t\t\"-h\" Help statistics");
    printf("\n\n\t*%s*\n", Url);

}