docs: Fix typos in sysfunc?.txt.

git-svn-id: svn://kolibrios.org@7722 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2020-02-17 02:52:27 +00:00
parent 752a7e6f74
commit 5b6eff0d69
2 changed files with 25 additions and 25 deletions

View File

@ -128,7 +128,7 @@
* если буфер пуст, возвращается eax=1 * если буфер пуст, возвращается eax=1
* если буфер непуст, то возвращается al=0, ah=код нажатой клавиши, * если буфер непуст, то возвращается al=0, ah=код нажатой клавиши,
биты 16-23 содержат сканкод нажатой клавиши в режиме ASCII, биты 16-23 содержат сканкод нажатой клавиши в режиме ASCII,
в режме сканкодов биты обнулены. в режиме сканкодов биты обнулены.
биты 23-31 обнулены биты 23-31 обнулены
* если есть "горячая клавиша", то возвращается * если есть "горячая клавиша", то возвращается
al=2, ah=сканкод нажатой клавиши (0 для управляющих клавиш), al=2, ah=сканкод нажатой клавиши (0 для управляющих клавиш),
@ -2419,7 +2419,7 @@ dword-значение цвета 0x00RRGGBB
====================================================================== ======================================================================
Параметры: Параметры:
* eax = 48 - номер функции * eax = 48 - номер функции
* ebx = 9 - номер подфункции * ebx = 11 - номер подфункции
Возвращаемое значение: Возвращаемое значение:
* eax = текущая высота шрифта в пикселях * eax = текущая высота шрифта в пикселях
@ -2431,7 +2431,7 @@ dword-значение цвета 0x00RRGGBB
====================================================================== ======================================================================
Параметры: Параметры:
* eax = 48 - номер функции * eax = 48 - номер функции
* ebx = 10 - номер подфункции * ebx = 12 - номер подфункции
* cl = новая высота шрифта в пикселях * cl = новая высота шрифта в пикселях
---------------------- Константы для регистров: ---------------------- ---------------------- Константы для регистров: ----------------------
@ -3977,7 +3977,7 @@ Architecture Software Developer's Manual, Volume 3, Appendix B);
IDE2 (Secondary Master), IDE3 (Secondary Slave); IDE2 (Secondary Master), IDE3 (Secondary Slave);
x - номер раздела на выбранном винчестере, начиная с 1 x - номер раздела на выбранном винчестере, начиная с 1
* CD0/1, CD1/1, CD2/1, CD3/1 = аналогично для cd * CD0/1, CD1/1, CD2/1, CD3/1 = аналогично для cd
* SYS - системная папка (является ключём, не зависит от кодировки), * SYS - системная папка (является ключом, не зависит от кодировки),
второй ключ может быть установлен сисфункцией 30.3. второй ключ может быть установлен сисфункцией 30.3.
Примеры: Примеры:
* '/sys/example.asm',0 * '/sys/example.asm',0
@ -4414,7 +4414,7 @@ Architecture Software Developer's Manual, Volume 3, Appendix B);
ROP - код растровых операций ROP - код растровых операций
0: копировать 0: копировать
1-15: Зарезервировано 1-15: Зарезервировано
B - блит на фоновую поферхность B - блит на фоновую поверхность
T - блит с прозрачностью T - блит с прозрачностью
CR - относительно клиентской области окна CR - относительно клиентской области окна
@ -4522,7 +4522,7 @@ Architecture Software Developer's Manual, Volume 3, Appendix B);
---------------------- Константы для регистров: ---------------------- ---------------------- Константы для регистров: ----------------------
eax - SF_NETWORK_GET (74) eax - SF_NETWORK_GET (74)
bl - SSF_DEVICE_POINER (4) bl - SSF_DEVICE_POINTER (4)
====================================================================== ======================================================================
=== Функция 74, подфункция 6, Получить количество посланых пакетов === === Функция 74, подфункция 6, Получить количество посланых пакетов ===
====================================================================== ======================================================================

View File

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