KolibriOS system functions
SYSTEM FEATURES OPERATING SYSTEM Kolibri
0.7.7.0+
The function number is placed in the eax register.
The system function is called with the command "int 0x40".
All registers except those explicitly specified in the
return value, including the register of flags of eflags
are saved.
Function 0 - define and draw a
window
Function 1 - put a dot in the
window
Function 2 - get the code of the
pressed key
Function 4 - draw a line of text
Function 7 - display image in the
window
Function 8 - define / delete
button
Function 9 - information about
the execution flow
Function 11 - check if there is
an event, without waiting
Function 12 - start / finish
window redrawing
Function 13 - draw a rectangle
in the window
Function 14 - get screen sizes
Function 15 and its
sub-functions (1-9)
Function 16 - save ram disk to
floppy disk
Function 17 - get the code of
the pressed button
Function 18 and its
sub-functions (1-11, 13-25)
Function 20 - MIDI interface
Function 21 and its sub-functions (1, 2, 5, 11, 12)
Function 22 - set system date / time
Function 23 - wait for events with timeout
Function 24 and its sub-functions (4, 5)
Function 25 - record area on the background layer
Function 26 and its sub-functions (1, 2, 5, 9-12)
Function 29 - get system date
Function 30 - working with the current folder
Function 34 - find out who owns the point of the
screen
Function 35 - read the color of the dot on the screen
Function 36 - read the screen area
Function 37 - working with the mouse
Function 38 - draw a segment
Function 39 and its sub-function (1,2,4)
Function 40 - set mask for expected events
Function 43 - input / output to port
Function 46 - reserve/release a group of I/O ports
Function 47 - display the number in the window
Function 48 and its sub-functions (0-13)
Function 49 - Advanced Power Management (APM)
Function 50 - setting the shape of the window
Function 51 - create stream
Function 54 and its sub-functions (0-4)
Function 55 and its sub-function 55
Function 57 - PCI BIOS
Function 60 - Inter Process Communication (IPC)
Function 61 - get parameters for direct access to the
chart
Function 62 and its sub-functions (0-2, 4-6, 8-10)
Function 63 - work with the debug Board
Function 64 - redistribute application memory
Function 65 - display the image with the palette in
the window
Function 66 - working with the keyboard
Function 67 - change window position/size
Function 68 and its sub-functions (0-4, 11-14, 16-28)
Function 69 – debugging
Function 69 and its sub-functions (0-9)
Function 70 - working with long file system names
Function 70 and its sub-function (0-10)
Function 71 - set the title bar of the window
Function 72 - send message to window
Function 73 - blit bitmap
Function 74 and its sub-functions (-1, 0-4, 6-10)
Function 75 and its sub-function (0-10)
Function 76 - Network options and statistics
Function 77 and its sub-function (0-3)
Function -1 - terminate the execution of the
thread/process
Function 80 - working with the file system with the
encoding
Event list
File system error codes
The following error codes are possible when starting
the program:
30 |
0x1E |
not enough memory |
31 |
0x1F |
file is not executable |
32 |
0x20 |
too many processes |
Thanks for reading.
Compiled by Leency, edited, supplemented and
translated by Alex2003.