Subversion Repositories Kolibri OS

Rev

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

Rev 3877 Rev 3958
Line 148... Line 148...
148
	$mov eax,17
148
	$mov eax,17
149
	$int  0x40
149
	$int  0x40
150
	$shr eax,8
150
	$shr eax,8
151
}
151
}
Line 152... Line -...
152
 
-
 
153
//----------------------------------------
-
 
154
 
-
 
155
/* ecx = point to structure
-
 
156
          sysdir_name     rb 64
-
 
157
          sysdir_path     rb 64
-
 
158
Ïðèìåð:  
-
 
159
dir_name1       db 'addappl',0
-
 
160
dir_path1       db 'HD0/1',0
-
 
161
*/
-
 
162
inline fastcall int SetAddApplDir( ECX)
-
 
163
{
-
 
164
	EAX = 30;
-
 
165
	EBX = 3;
-
 
166
	$int 0x40
-
 
167
}
-
 
168
 
152
 
169
inline fastcall dword GetFreeRAM()
153
inline fastcall dword GetFreeRAM()
170
{
154
{
171
	$mov eax, 18
155
	$mov eax, 18
172
	$mov ebx, 16
156
	$mov ebx, 16
Line 379... Line 363...
379
	$pop ebx
363
	$pop ebx
380
	$pop eax
364
	$pop eax
381
}
365
}
382
//------------------------------------------------------------------------------
366
//------------------------------------------------------------------------------
Line 383... Line 367...
383
 
367
 
384
void DefineAndDrawWindow(dword x,y, sizeX,sizeY, byte WindowType,dword WindowAreaColor, EDI, ESI)
368
void DefineAndDrawWindow(dword x, y, size_w, size_h, byte WindowType,dword WindowAreaColor, EDI, ESI)
385
{
369
{
386
	EAX = 12;              // function 12:tell os about windowdraw
370
	EAX = 12;              // function 12:tell os about windowdraw
387
	EBX = 1;
371
	EBX = 1;
Line 388... Line 372...
388
	$int 0x40
372
	$int 0x40
389
	
373
	
390
	EAX = 0;
374
	EAX = 0;
391
	EBX = x << 16 + sizeX;
375
	EBX = x << 16 + size_w; 
392
	ECX = y << 16 + sizeY;
376
	ECX = y << 16 + size_h;
Line 393... Line 377...
393
	EDX = WindowType << 24 | WindowAreaColor;
377
	EDX = WindowType << 24 | WindowAreaColor;
394
	$int 0x40
378
	$int 0x40