/programs/cmm/lib/keyboard.h |
---|
133,6 → 133,14 |
EAX = key_editbox; |
} |
inline fastcall byte GetKeyScancode() |
{ |
$mov eax,2 |
$int 0x40 |
$shr eax,16 |
return AL; |
} |
// ECX is a mode: 1 - scancodes, 0 - ascii |
inline fastcall SetKeyboardMode(ECX) |
{ |
/programs/cmm/lib/kolibri.h |
---|
646,10 → 646,10 |
//The initialization of the initial data before running |
void ______INIT______() |
{ |
skin_height = GetSkinHeight(); |
screen.width = GetScreenWidth()+1; |
screen.height = GetScreenHeight()+1; |
__generator = GetStartTime(); |
skin_height = @GetSkinHeight(); |
screen.width = @GetScreenWidth()+1; |
screen.height = @GetScreenHeight()+1; |
__generator = @GetStartTime(); |
mem_init(); |
main(); |
} |
/programs/cmm/lib/mem.h |
---|
5,14 → 5,11 |
#include "../lib/kolibri.h" |
#endif |
inline dword mem_init() |
inline fastcall void mem_init() |
{ |
$push ebx |
$mov eax, 68 |
$mov ebx, 11 |
$int 0x40 |
$pop ebx |
} |
:dword malloc(dword size) |