Subversion Repositories Kolibri OS

Rev

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

Rev 5646 Rev 5648
Line 5... Line 5...
5
#startaddress 0
5
#startaddress 0
6
#code32 TRUE
6
#code32 TRUE
Line 7... Line 7...
7
 
7
 
8
char   os_name[8]   = {'M','E','N','U','E','T','0','1'};
8
char   os_name[8]   = {'M','E','N','U','E','T','0','1'};
9
dword  os_version   = 0x00000001;
9
dword  os_version   = 0x00000001;
10
dword  start_addr   = #load_init_main;
10
dword  start_addr   = #______INIT______;
11
dword  final_addr   = #stop+32;
11
dword  final_addr   = #______STOP______+32;
12
dword  alloc_mem    = MEMSIZE;
12
dword  alloc_mem    = MEMSIZE;
13
dword  x86esp_reg   = MEMSIZE;
13
dword  x86esp_reg   = MEMSIZE;
14
dword  I_Param      = #param;
14
dword  I_Param      = #param;
15
dword  I_Path       = #program_path;
15
dword  I_Path       = #program_path;
Line 930... Line 930...
930
		BUF1++;
930
		BUF1++;
931
	}*/
931
	}*/
932
	//DSBYTE[BUF1] = 0;
932
	//DSBYTE[BUF1] = 0;
933
	DSBYTE[BUF] = 0;
933
	DSBYTE[BUF] = 0;
934
}
934
}
-
 
935
char __BUF_DIR__[4096];
-
 
936
:struct SELF
-
 
937
{
-
 
938
	dword dir;
-
 
939
	dword file;
-
 
940
	dword path;
-
 
941
} self;
Line 935... Line 942...
935
 
942
 
Line 936... Line 943...
936
dword __generator;  // random number generator - äëÿ ãåíåðàöèè ñëó÷àéíûõ ÷èñåë
943
dword __generator;  // random number generator - äëÿ ãåíåðàöèè ñëó÷àéíûõ ÷èñåë
Line 937... Line -...
937
 
-
 
938
:dword program_path_length;
-
 
939
 
-
 
940
char __BUF_DIR__[4096];
-
 
941
 
944
 
942
dword __DIR__;
945
:dword program_path_length;
943
 
946
 
944
//The initialization of the initial data before running
947
//The initialization of the initial data before running
945
void load_init_main()
948
void ______INIT______()
-
 
949
{
946
{
950
	self.dir = #__BUF_DIR__;
Line 947... Line 951...
947
	__DIR__ = #__BUF_DIR__;
951
	self.file = 0;
948
	
952
	self.path = I_Path;
949
	__path_name__(__DIR__,I_Path);
953
	__path_name__(#__BUF_DIR__,I_Path);
Line 956... Line 960...
956
	MOUSE_TIME = 50; //Default 500 ms.
960
	MOUSE_TIME = 50; //Default 500 ms.
957
	__generator = GetStartTime();
961
	__generator = GetStartTime();
958
	//mem_Init();
962
	//mem_Init();
959
	main();
963
	main();
960
}
964
}
961
 
-
 
-
 
965
______STOP______:
962
#endif
966
#endif
963
>
967
>