Subversion Repositories Kolibri OS

Rev

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

Rev 3020 Rev 3054
Line 22... Line 22...
22
 
22
 
23
#define OLD      -1
23
#define OLD      -1
24
#define true      1
24
#define true      1
Line -... Line 25...
-
 
25
#define false     0
-
 
26
 
25
#define false     0
27
#define NULL      0
26
 
28
 
27
//Button options
29
//Button options
28
#define BT_DEL      0x80000000
30
#define BT_DEL      0x80000000
Line 147... Line 149...
147
	$shr eax,8
149
	$shr eax,8
148
}
150
}
Line 149... Line 151...
149
 
151
 
Line -... Line 152...
-
 
152
//----------------------------------------
-
 
153
 
-
 
154
inline fastcall dword GetFreeRAM()
-
 
155
{
-
 
156
	$mov eax, 18
-
 
157
	$mov ebx, 16
-
 
158
	$int 0x40
-
 
159
	//return eax = ðàçìåð ñâîáîäíîé ïàìÿòè â êèëîáàéòàõ
-
 
160
}
-
 
161
 
-
 
162
inline fastcall dword LoadDriver( ECX) //ECX - èìÿ äðàéâåðà
-
 
163
{
-
 
164
	$mov eax, 68
-
 
165
	$mov ebx, 16
-
 
166
	$int 0x40
-
 
167
	//return 0 - íåóäà÷à, èíà÷å eax = õýíäë äðàéâåðà 
-
 
168
}
-
 
169
 
-
 
170
inline fastcall dword RuleDriver( ECX) //óêàçàòåëü íà óïðàâëÿþùóþ ñòðóêòóðó
-
 
171
{
-
 
172
	$mov eax, 68
-
 
173
	$mov ebx, 17
-
 
174
	$int 0x40
-
 
175
	//return eax = îïðåäåëÿåòñÿ äðàéâåðîì
150
//----------------------------------------
176
}
151
 
177
 
152
struct proc_info
178
struct proc_info
153
{
179
{
154
	#define SelfInfo -1
180
	#define SelfInfo -1
Line 364... Line 390...
364
{
390
{
365
	EAX = 7;
391
	EAX = 7;
366
	ECX = w<<16+h;
392
	ECX = w<<16+h;
367
	EDX = x<<16+y;
393
	EDX = x<<16+y;
368
	$int 0x40
394
	$int 0x40
-
 
395
}
-
 
396
 
-
 
397
void _PutImage(dword x,y, w,h, EBX)
-
 
398
{
-
 
399
	EAX = 7;
-
 
400
	ECX = w<<16+h;
-
 
401
	EDX = x<<16+y;
-
 
402
	$int 0x40
369
}
403
}
Line 370... Line 404...
370
 
404
 
371
void PutPaletteImage(dword EBX,w,h,x,y,ESI,EDI)
405
void PutPaletteImage(dword EBX,w,h,x,y,ESI,EDI)
372
{
406
{