Rev 935 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 935 | Rev 937 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | //Events |
17 | //Events |
18 | #define evMouse 6 |
18 | #define evMouse 6 |
19 | #define evButton 3 |
19 | #define evButton 3 |
20 | #define evKey 2 |
20 | #define evKey 2 |
21 | #define evReDraw 1 |
21 | #define evReDraw 1 |
22 | #define evNet 8 |
- | |
Line 23... | Line 22... | ||
23 | 22 | ||
24 | //Button options |
23 | //Button options |
25 | #define BT_DEL 0x80000000 |
24 | #define BT_DEL 0x80000000 |
26 | #define BT_HIDE 0x40000000 |
25 | #define BT_HIDE 0x40000000 |
Line 32... | Line 31... | ||
32 | 31 | ||
33 | 32 | ||
34 | 33 | ||
35 | int vert; |
34 | int vert; |
36 | struct mouse{ |
35 | struct mouse{ |
Line 37... | Line 36... | ||
37 | dword x,y,lkm,pkm; |
36 | int x,y,lkm,pkm; |
38 | void get(); |
37 | void get(); |
Line 45... | Line 44... | ||
45 | $int 0x40 |
44 | $int 0x40 |
46 | $mov ebx, eax |
45 | $mov ebx, eax |
47 | $shr eax, 16 |
46 | $shr eax, 16 |
48 | $and ebx,0x0000FFFF |
47 | $and ebx,0x0000FFFF |
49 | x = EAX; |
48 | x = EAX; |
50 | y = EBX; |
49 | y = EBX-skin_width; |
51 | EAX = 37; |
50 | EAX = 37; |
52 | EBX = 2; |
51 | EBX = 2; |
53 | $int 0x40 |
52 | $int 0x40 |
54 | $mov ebx, eax |
53 | $mov ebx, eax |
55 | $and eax, 0x00000001 |
54 | $and eax, 0x00000001 |
Line 65... | Line 64... | ||
65 | $and ebx,0x0000FFFF |
64 | $and ebx,0x0000FFFF |
66 | //hor = EAX; |
65 | //hor = EAX; |
67 | vert = EBX; |
66 | vert = EBX; |
68 | } |
67 | } |
Line 69... | Line -... | ||
69 | - | ||
70 | - | ||
71 | //--------------------------------------------------------------------------- |
- | |
72 | struct f70{ |
- | |
73 | dword func; |
- | |
74 | dword param1; |
- | |
75 | dword param2; |
- | |
76 | dword param3; |
- | |
77 | dword param4; |
- | |
78 | char rezerv; |
- | |
79 | dword name; |
- | |
80 | }; |
68 | |
81 | //--------------------------------------------------------------------------- |
69 | //--------------------------------------------------------------------------- |
82 | struct BDVK{ |
70 | struct BDVK{ |
83 | dword attr; |
71 | dword attr; |
84 | byte type_name; |
72 | byte type_name; |
Line 101... | Line 89... | ||
101 | char rezerv2; |
89 | char rezerv2; |
102 | dword adress,use_memory,ID,left,top,width,height; |
90 | dword adress,use_memory,ID,left,top,width,height; |
103 | word status_slot,rezerv3; |
91 | word status_slot,rezerv3; |
104 | dword work_left,work_top,work_width,work_height; |
92 | dword work_left,work_top,work_width,work_height; |
105 | char status_window; |
93 | char status_window; |
106 | void getme(); |
94 | void GetInfo(dword ECX); |
- | 95 | #define SelfInfo -1 |
|
107 | }; |
96 | }; |
Line 108... | Line 97... | ||
108 | 97 | ||
109 | void proc_info::getme() |
98 | void proc_info::GetInfo(dword ECX) |
110 | { |
99 | { |
111 | EAX = 9; |
100 | EAX = 9; |
112 | EBX = #use_cpu; |
- | |
113 | ECX = -1; |
101 | EBX = #use_cpu; |
114 | $int 0x40 |
102 | $int 0x40 |
115 | } |
103 | } |
Line 116... | Line 104... | ||
116 | //------------------------------------------------------------------------------- |
104 | //------------------------------------------------------------------------------- |
117 | 105 | ||
118 | inline fastcall dword WaitEvent(){ |
106 | inline fastcall dword WaitEvent(){ |
119 | EAX = 10; // wait here for event |
107 | EAX = 10; // wait here for event |
Line 120... | Line 108... | ||
120 | $int 0x40 |
108 | $int 0x40 |
- | 109 | } |
|
121 | } |
110 | |
122 | - | ||
123 | /*inline fastcall void SetEventMask(dword EBX){ |
111 | /*inline fastcall void SetEventMask(dword EBX) |
124 | $mov eax,40 |
112 | { |
Line 125... | Line 113... | ||
125 | //$mov ebx,100111b |
113 | EAX = 40; |
126 | $int 0x40 |
114 | $int 0x40 |
Line 141... | Line 129... | ||
141 | inline fastcall void ExitProcess(){ |
129 | inline fastcall void ExitProcess(){ |
142 | EAX = -1; // close this program |
130 | EAX = -1; // close this program |
143 | $int 0x40 |
131 | $int 0x40 |
144 | } |
132 | } |
Line 145... | Line 133... | ||
145 | 133 | ||
146 | /*void Pause(dword EBX) |
134 | void Pause(dword EBX){ |
147 | { // 㧠, ¢ á®âëå ¤®«ïå ᥪã¤ë EBX = value |
- | |
148 | $mov eax, 5 |
135 | $mov eax, 5 // 㧠, ¢ á®âëå ¤®«ïå ᥪã¤ë |
149 | $int 0x40 |
136 | $int 0x40 |
Line 150... | Line 137... | ||
150 | }*/ |
137 | } |
151 | 138 | ||
152 | //------------------------------------------------------------------------------ |
139 | //------------------------------------------------------------------------------ |
153 | void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword |
140 | void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword |
Line 342... | Line 329... | ||
342 | ESI = 8; |
329 | ESI = 8; |
343 | EBP = 0; |
330 | EBP = 0; |
344 | $int 0x40 |
331 | $int 0x40 |
345 | } |
332 | }16+y+skin_width; |
Line 346... | Line -... | ||
346 | - | ||
347 | //------------------------------------------------------------------------------ |
- | |
348 | - | ||
349 | f70 CopyFile_f; |
- | |
350 | BDVK CopyFile_atr; |
- | |
351 | inline fastcall dword CopyFile(dword EBX,ECX) |
- | |
352 | { |
- | |
353 | dword s=EBX, d=ECX, cBufer=0; |
- | |
354 | CopyFile_f.func = 5; |
- | |
355 | CopyFile_f.param1 = 0; |
- | |
356 | CopyFile_f.param2 = 0; |
- | |
357 | CopyFile_f.param3 = 0; |
- | |
358 | CopyFile_f.param4 = #CopyFile_atr; |
- | |
359 | CopyFile_f.rezerv = 0; |
- | |
360 | CopyFile_f.name = s; |
- | |
361 | $mov eax, 70 |
- | |
362 | $mov ebx, #CopyFile_f |
- | |
363 | $int 0x40 |
- | |
364 | - | ||
365 | if (!EAX) |
- | |
366 | { |
- | |
367 | cBufer = malloc(CopyFile_atr.sizelo); |
- | |
368 | CopyFile_f.func = 0; |
- | |
369 | CopyFile_f.param1 = 0; |
- | |
370 | CopyFile_f.param2 = 0; |
- | |
371 | CopyFile_f.param3 = CopyFile_atr.sizelo; |
- | |
372 | CopyFile_f.param4 = cBufer; |
- | |
373 | CopyFile_f.rezerv = 0; |
- | |
374 | CopyFile_f.name = s; |
- | |
375 | $mov eax, 70 |
- | |
376 | $mov ebx, #CopyFile_f |
- | |
377 | $int 0x40 |
- | |
378 | - | ||
379 | IF (!EAX) |
- | |
380 | { |
- | |
381 | CopyFile_f.func = 2; |
- | |
382 | CopyFile_f.param1 = 0; |
- | |
383 | CopyFile_f.param2 = 0; |
- | |
384 | CopyFile_f.param3 = CopyFile_atr.sizelo; |
- | |
385 | CopyFile_f.param4 = cBufer; |
- | |
386 | CopyFile_f.rezerv = 0; |
- | |
387 | CopyFile_f.name = d; |
- | |
388 | $mov eax, 70 |
- | |
389 | $mov ebx, #CopyFile_f |
- | |
390 | $int 0x40 |
- | |
391 | } |
- | |
392 | } |
- | |
393 | - |