Subversion Repositories Kolibri OS

Rev

Rev 7321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7321 Rev 7326
Line 3... Line 3...
3
#pragma option cri-
3
#pragma option cri-
4
#pragma option -CPA
4
#pragma option -CPA
5
#initallvar 0
5
#initallvar 0
6
#jumptomain FALSE
6
#jumptomain FALSE
Line 7... Line 7...
7
 
7
 
Line -... Line 8...
-
 
8
#startaddress 0
Line 8... Line 9...
8
#startaddress 0x0000
9
 
9
 
10
#code32 TRUE
10
 
11
 
11
char   os_name[8]   = {'M','E','N','U','E','T','0','1'};
12
char   os_name[8]   = {'M','E','N','U','E','T','0','1'};
Line 24... Line 25...
24
{
25
{
25
	EAX = -1;
26
	EAX = -1;
26
	$int 0x40
27
	$int 0x40
27
}
28
}
Line -... Line 29...
-
 
29
 
28
 
30
segmentDisableFunction:
29
dword eaxFunctionDestroy(){RETURN 0;}
31
dword eaxFunctionDestroy(){RETURN 0;}
Line 30... Line 32...
30
eaxFunctionDestroyEnd:
32
segmentDisableFunctionEnd:
31
 
33
 
Line 32... Line 34...
32
void ____INIT____()
34
void ____INIT____()
33
{
35
{
34
 
36
 
35
//    Disable door kernel
37
//    Disable door kernel
-
 
38
	EAX = 81;
36
	EAX = 81;
39
	EBX = 81; // Self function
37
	EBX = 81;
40
	ECX = #eaxFunctionDestroy; // Function execute
Line 38... Line 41...
38
	ECX = #eaxFunctionDestroy;
41
	EDX = #segmentDisableFunction; // Begin segment
39
	EDX = #eaxFunctionDestroyEnd-#eaxFunctionDestroy;
42
	ESI = #segmentDisableFunctionEnd; // End segment