update kolibri.h-- lib

git-svn-id: svn://kolibrios.org@2765 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2012-06-13 14:12:42 +00:00
parent ddda560478
commit 04836bcceb

View File

@ -81,25 +81,30 @@ void system_colors::get()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
inline fastcall dword WaitEvent(){ inline fastcall dword WaitEvent(){
EAX = 10; $mov eax,10
$int 0x40
}
inline fastcall dword CheckEvent(){
$mov eax,11
$int 0x40 $int 0x40
} }
inline fastcall dword WaitEventTimeout(dword EBX){ inline fastcall dword WaitEventTimeout(dword EBX){
EAX = 23; $mov eax,23
$int 0x40 $int 0x40
} }
inline fastcall SetEventMask(dword EBX) inline fastcall SetEventMask(dword EBX)
{ {
EAX = 40; $mov eax,40
$int 0x40 $int 0x40
} }
inline fastcall ScancodesGeting(){ inline fastcall ScancodesGeting(){
$mov eax,66; $mov eax,66
$mov ebx,1; $mov ebx,1
$mov ecx,1; //瓷<><EFBFBD><E291A9> $mov ecx,1 //瓷<><EFBFBD><E291A9>
$int 0x40 $int 0x40
} }
@ -118,7 +123,7 @@ inline fastcall word GetKey(){ //Gluk fix
$jmp getkey $jmp getkey
@getkeyii: @getkeyii:
$pop edx $pop edx
EAX = EAX >> 8; $shr eax,8
} }
@ -131,9 +136,9 @@ inline fastcall Pause(dword EBX)
//================================================================== //==================================================================
inline fastcall word GetButtonID(){ inline fastcall word GetButtonID(){
EAX = 17; $mov eax,17
$int 0x40 $int 0x40
EAX = EAX >> 8; $shr eax,8
} }
struct proc_info{ struct proc_info{
@ -152,7 +157,7 @@ struct proc_info{
void GetProcessInfo(dword EBX, ECX) void GetProcessInfo(dword EBX, ECX)
{ {
EAX = 9; $mov eax,9;
$int 0x40 $int 0x40
} }
@ -172,7 +177,7 @@ inline fastcall int ActiveProcess()
inline fastcall ExitProcess(){ inline fastcall ExitProcess(){
EAX = -1; // close this program $mov eax,-1;
$int 0x40 $int 0x40
} }