33,7 → 33,7 |
|
struct mouse |
{ |
dword x,y,lkm,pkm,hor,vert; |
int x,y,lkm,pkm,hor,vert; |
void get(); |
}; |
|
165,7 → 165,7 |
byte reserved[1024-71]; |
}; |
|
void GetProcessInfo( EBX, ECX) |
inline fastcall void GetProcessInfo( EBX, ECX) |
{ |
$mov eax,9; |
$int 0x40 |
205,19 → 205,30 |
$int 0x40 |
} |
|
inline fastcall ExitProcess() |
inline fastcall int KillProcess( ECX) |
{ |
$mov eax,-1; |
$mov eax,18; |
$mov ebx,18; |
$int 0x40 |
} |
|
inline fastcall int KillProcess( ECX) |
inline fastcall int ExitSystem( ECX) |
{ |
$mov eax,18; |
$mov ebx,18; |
#define TURN_OFF 2 |
#define REBOOT 3 |
#define KERNEL 4 |
|
$mov eax, 18 |
$mov ebx, 9 |
$int 0x40 |
} |
|
inline fastcall ExitProcess() |
{ |
$mov eax,-1; |
$int 0x40 |
} |
|
//------------------------------------------------------------------------------ |
|
//eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus) |
228,7 → 239,7 |
$int 0x40 |
} |
|
inline fastcall dword GetSkinWidth() |
inline fastcall dword GetSkinHeight() |
{ |
$push ebx |
$mov eax,48 |
244,12 → 255,17 |
$int 0x40 |
} |
|
inline fastcall dword GetScreenWidth() |
inline fastcall int GetScreenWidth() |
{ |
EAX = 14; |
EBX = 4; |
$mov eax, 14 |
$int 0x40 |
$shr eax, 16 |
} |
|
inline fastcall int GetScreenHeight() |
{ |
$mov eax, 14 |
$int 0x40 |
$and eax,0x0000FFFF |
} |
|
260,7 → 276,7 |
$int 0x40 |
} |
|
byte fastcall TestBit( EAX, CL) |
inline fastcall int TestBit( EAX, CL) |
{ |
$shr eax,cl |
$and eax,1 |
269,17 → 285,16 |
|
//------------------------------------------------------------------------------ |
|
void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword mainAreaColour,byte headerType,dword headerColour,EDI) |
void DefineAndDrawWindow(dword x,y, sizeX,sizeY, byte WindowType,dword WindowAreaColor, EDI) |
{ |
EAX = 12; // function 12:tell os about windowdraw |
EBX = 1; |
$int 0x40 |
|
EAX = 0; |
EBX = x << 16 + sizeX; |
ECX = y << 16 + sizeY; |
EDX = mainAreaType << 24 | mainAreaColour; |
ESI = headerType << 24 | headerColour; |
$xor eax,eax |
EDX = WindowType << 24 | WindowAreaColor; |
$int 0x40 |
|
EAX = 12; // function 12:tell os about windowdraw |
289,7 → 304,7 |
|
inline fastcall MoveSize( EBX,ECX,EDX,ESI) |
{ |
EAX = 67; |
$mov eax, 67 |
$int 0x40 |
} |
|
316,6 → 331,13 |
$int 0x40; |
} |
|
dword GetPixelColor(dword x, x_size, y) |
{ |
$mov eax, 35 |
EBX= y*x_size+x; |
$int 0x40 |
} |
|
void PutImage(dword EBX,w,h,x,y) |
{ |
EAX = 7; |
365,7 → 387,7 |
|
//------------------------------------------------------------------------------ |
|
void DrawRegion(dword x,y,width,height,color1) |
:void DrawRegion(dword x,y,width,height,color1) |
{ |
DrawBar(x,y,width,1,color1); //¯®«®á £®à ᢥàåã |
DrawBar(x,y+height,width,1,color1); //¯®«®á £®à ᨧã |
373,7 → 395,7 |
DrawBar(x+width,y,1,height+1,color1); //¯®«®á ¢¥àåã á¯à ¢ |
} |
|
void DrawRegion_3D(dword x,y,width,height,color1,color2) |
:void DrawRegion_3D(dword x,y,width,height,color1,color2) |
{ |
DrawBar(x,y,width+1,1,color1); //¯®«®á £®à ᢥàåã |
DrawBar(x,y+1,1,height-1,color1); //¯®«®á á«¥¢ |
381,7 → 403,7 |
DrawBar(x,y+height,width,1,color2); //¯®«®á £®à ᨧã |
} |
|
void DrawFlatButton(dword x,y,width,height,id,color,text) |
:void DrawFlatButton(dword x,y,width,height,id,color,text) |
{ |
DrawRegion_3D(x,y,width,height,0x94AECE,0x94AECE); |
DrawRegion_3D(x+1,y+1,width-2,height-2,0xFFFFFF,0xC7C7C7); |
391,7 → 413,7 |
WriteText(width/2+x+1,height/2-3+y,0x80,0,text,0); |
} |
|
void DrawCircle(int x, y, r) |
:void DrawCircle(int x, y, r) |
{ |
int i; |
float px=0, py=r, ii = r * 3.1415926 * 2; |