Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7722 → Rev 7721

/kernel/trunk/docs/sysfuncr.txt
128,7 → 128,7
* если буфер пуст, возвращается eax=1
* если буфер непуст, то возвращается al=0, ah=код нажатой клавиши,
биты 16-23 содержат сканкод нажатой клавиши в режиме ASCII,
в режиме сканкодов биты обнулены.
в режме сканкодов биты обнулены.
биты 23-31 обнулены
* если есть "горячая клавиша", то возвращается
al=2, ah=сканкод нажатой клавиши (0 для управляющих клавиш),
2419,7 → 2419,7
======================================================================
Параметры:
* eax = 48 - номер функции
* ebx = 11 - номер подфункции
* ebx = 9 - номер подфункции
Возвращаемое значение:
* eax = текущая высота шрифта в пикселях
 
2431,7 → 2431,7
======================================================================
Параметры:
* eax = 48 - номер функции
* ebx = 12 - номер подфункции
* ebx = 10 - номер подфункции
* cl = новая высота шрифта в пикселях
 
---------------------- Константы для регистров: ----------------------
3977,7 → 3977,7
IDE2 (Secondary Master), IDE3 (Secondary Slave);
x - номер раздела на выбранном винчестере, начиная с 1
* CD0/1, CD1/1, CD2/1, CD3/1 = аналогично для cd
* SYS - системная папка (является ключом, не зависит от кодировки),
* SYS - системная папка (является ключём, не зависит от кодировки),
второй ключ может быть установлен сисфункцией 30.3.
Примеры:
* '/sys/example.asm',0
4414,7 → 4414,7
ROP - код растровых операций
0: копировать
1-15: Зарезервировано
B - блит на фоновую поверхность
B - блит на фоновую поферхность
T - блит с прозрачностью
CR - относительно клиентской области окна
 
4522,7 → 4522,7
 
---------------------- Константы для регистров: ----------------------
eax - SF_NETWORK_GET (74)
bl - SSF_DEVICE_POINTER (4)
bl - SSF_DEVICE_POINER (4)
======================================================================
=== Функция 74, подфункция 6, Получить количество посланых пакетов ===
======================================================================
/kernel/trunk/docs/sysfuncs.txt
71,7 → 71,7
in ebx,ecx. The coordinates are resulted concerning
the left upper corner of the window, which, thus, is set as (0,0),
coordinates of the right lower corner essence (xsize,ysize).
* The sizes of the window are understood in sense of coordinates
* The sizes of the window are understood in sence of coordinates
of the right lower corner. This concerns all other functions too.
It means, that the real sizes are on 1 pixel more.
* The window of style Y=1 looks as follows:
1018,7 → 1018,7
Parameters:
* eax = 18 - function number
* ebx = 18 - subfunction number
* ecx = identifier of process/thread (PID/TID)
* ecx = identifer of process/thread (PID/TID)
Returned value:
* eax = 0 - success
* eax = -1 - error (process is not found or is system)
1131,7 → 1131,7
* ecx = pointer to the buffer for information (36 bytes)
Returned value:
* eax = total size of existing RAM in pages
or -1 if error has occurred
or -1 if error has occured
* buffer pointed to by ecx contains the following information:
* +0: dword: total size of existing RAM in pages
* +4: dword: size of free RAM in pages
1156,7 → 1156,7
Parameters:
* eax = 18 - function number
* ebx = 21 - subfunction number
* ecx = identifier of process/thread (PID/TID)
* ecx = identifer of process/thread (PID/TID)
Returned value:
* eax = 0 - error (invalid identifier)
* otherwise eax = slot number
1503,7 → 1503,7
======================================================================
======= Function 25 - put image area on the background layer. ========
======================================================================
Parameters:
Paramters:
* eax = 25 - function number
* ebx = pointer to the previously allocated memory area,
where placed the source images in a format BBGGRRTTBBGGRRTT...
1859,7 → 1859,7
* bit 17 is set = right button is released
* bit 18 is set = middle button is released
 
* bit 23 is set = horizontal scroll is used
* bit 23 is set = horisontal scroll is used
 
* bit 24 is set = doubleclick by left button
 
2027,7 → 2027,7
Returned value:
* eax = previous value of mask
Remarks:
* Default mask (7=111b) enables notices about redraw,
* Default mask (7=111b) enables nofices about redraw,
keys and buttons. This is enough for many applications.
* Events prohibited in the mask are saved anyway, when come;
they are simply not informed with event functions.
2236,8 → 2236,8
... ; somewhere one must call
; this function with ecx=sc
mov ecx, [sc.work_button_text] ; read text color on
; button in working area
* A program itself decides to use or not to use color table.
; buttin in working area
* A program itself desides to use or not to use color table.
For usage program must simply at calls to drawing functions select
color taken from the table.
* At change of the table of standard colors (by subfunction 2 with
2397,7 → 2397,7
======================================================================
Parameters:
* eax = 48 - function number
* ebx = 11 - subfunction number
* ebx = 9 - subfunction number
Returned value:
* eax = current font height in pixels
 
2409,7 → 2409,7
======================================================================
Parameters:
* eax = 48 - function number
* ebx = 12 - subfunction number
* ebx = 10 - subfunction number
* cl = new font height in pixels
 
---------------------- Constants for registers: ----------------------
2877,7 → 2877,7
fff = function number of device
* cl = number of register (must be even for bl=9,
divisible by 4 for bl=10)
* dl/dx/edx (depending on requested size) contains
* dl/dx/edx (depending on requested size) contatins
the data to write
Returned value:
* eax = -1 - error (access to PCI is disabled or parameters
3076,7 → 3076,7
* X - similar for LAlt and RAlt
Returned value:
* eax=0 - success
* eax=1 - too many hotkeys (maximum 256 are allowed)
* eax=1 - too mant hotkeys (maximum 256 are allowed)
Remarks:
* Hotkey can work either at pressing or at release. Release
scancode of a key is more on 128 than pressing scancode
3471,7 → 3471,7
* SHM_READ = 0x00 - only read access
* SHM_WRITE = 0x01 - read and write access
Returned value:
* eax = pointer to memory area, 0 if error has occurred
* eax = pointer to memory area, 0 if error has occured
* if new area is created (SHM_CREATE or SHM_OPEN_ALWAYS):
edx = 0 - success, otherwise - error code
* if existing area is opened (SHM_OPEN or SHM_OPEN_ALWAYS):
3557,7 → 3557,7
* eax = -1 - invalid signal number
* otherwise eax = old value of activity for this signal (0/1)
Remarks:
* In current implementation only mask for user exception handler,
* In current implementation only mask for user excepton handler,
which has been previously set by subfunction 24,
is changed. Signal number corresponds to exception number.
 
3619,7 → 3619,7
A process can load other process as debugged by set of corresponding
bit by call to subfunction 7 of function 70.
A process can have only one debugger; one process can debug some
others. The system notifies debugger on events occurring with
others. The system notifies debugger on events occuring with
debugged process. Messages are written to the buffer defined by
subfunction 0.
Format of a message:
3637,7 → 3637,7
* in addition dword-image of the register DR6 is given:
* bits 0-3: condition of the corresponding breakpoint (set by
subfunction 9) is satisfied
* bit 14: exception has occurred because of the trace mode
* bit 14: exception has occured because of the trace mode
(flag TF is set TF)
* process is suspended
When debugger terminates, all debugged processes are killed.
4238,7 → 4238,7
* +20 = +0x14: path, general rules of names forming
Returned value:
* eax > 0 - program is loaded, eax contains PID
* eax < 0 - an error has occurred, -eax contains
* eax < 0 - an error has occured, -eax contains
file system error code
* ebx destroyed
Remarks:
4478,7 → 4478,7
 
---------------------- Constants for registers: ----------------------
eax - SF_NETWORK_GET (74)
bl - SSF_DEVICE_POINTER (4)
bl - SSF_DEVICE_POINER (4)
======================================================================
========= Function 74, Subfunction 6, Get packet TX counter. =========
======================================================================