Subversion Repositories Kolibri OS

Rev

Rev 485 | Rev 499 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 485 Rev 486
Line 672... Line 672...
672
  * ecx = pointer to the full path to file
672
  * ecx = pointer to the full path to file
673
    (for example, "/hd0/1/kolibri/kolibri.img")
673
    (for example, "/hd0/1/kolibri/kolibri.img")
674
Returned value:
674
Returned value:
675
  * eax = 0 - success
675
  * eax = 0 - success
676
  * else eax = error code of the file system
676
  * else eax = error code of the file system
677
Çàìå÷àíèÿ:
677
³àìå÷àíèÿ:
678
  * All folders in the given path must exist, otherwise function
678
  * All folders in the given path must exist, otherwise function
679
    returns value 5, "file not found".
679
    returns value 5, "file not found".
Line 680... Line 680...
680
 
680
 
681
======================================================================
681
======================================================================
Line 1412... Line 1412...
1412
  * eax = 24 - function number
1412
  * eax = 24 - function number
1413
  * ebx = 1 - subfunction number
1413
  * ebx = 1 - subfunction number
1414
Returned value:
1414
Returned value:
1415
  * eax = 0 - success
1415
  * eax = 0 - success
1416
  * eax = 1 - CD base is not defined
1416
  * eax = 1 - CD base is not defined
1417
Çàìå÷àíèÿ:
1417
³àìå÷àíèÿ:
1418
  * Previously CD base port must be defined by call to 
1418
  * Previously CD base port must be defined by call to 
1419
    subfunction 3 of function 21.
1419
    subfunction 3 of function 21.
Line 1420... Line 1420...
1420
 
1420
 
1421
======================================================================
1421
======================================================================
Line 1742... Line 1742...
1742
  * ebx = 2 - subfunction number
1742
  * ebx = 2 - subfunction number
1743
Returned value:
1743
Returned value:
1744
  * eax contains information on the pressed mouse buttons:
1744
  * eax contains information on the pressed mouse buttons:
1745
  * bit 0 is set = left button is pressed
1745
  * bit 0 is set = left button is pressed
1746
  * bit 1 is set = right button is pressed
1746
  * bit 1 is set = right button is pressed
-
 
1747
  * bit 2 is set = middle button is pressed
-
 
1748
  * bit 3 is set = 4th button is pressed
-
 
1749
  * bit 4 is set = 5th button is pressed
1747
  * other bits are cleared
1750
  * other bits are cleared
Line 1748... Line 1751...
1748
 
1751
 
1749
-------------------- Subfunction 4 - load cursor ---------------------
1752
-------------------- Subfunction 4 - load cursor ---------------------
1750
Parameters:
1753
Parameters:
Line 1792... Line 1795...
1792
    (with the call to subfunction 4). The function does not delete
1795
    (with the call to subfunction 4). The function does not delete
1793
    system cursors and cursors, loaded by another applications.
1796
    system cursors and cursors, loaded by another applications.
1794
  * If the active cursor (set by subfunction 5) is deleted,
1797
  * If the active cursor (set by subfunction 5) is deleted,
1795
    the system restores the default cursor (standard arrow).
1798
    the system restores the default cursor (standard arrow).
Line -... Line 1799...
-
 
1799
 
-
 
1800
------------------- Subfunction 7 - get scroll data --------------------
-
 
1801
Parameters:
-
 
1802
  * eax = 37 - function number
-
 
1803
  * ebx = 7 - subfunction number
-
 
1804
Returned value:
-
 
1805
  * eax = horizontal_offset*65536 + vertical_offset
-
 
1806
Remarks:
-
 
1807
  * Scroll data is available for active window only
-
 
1808
  * Values are zeroized after reading
-
 
1809
  * Values ara signed    
1796
 
1810
 
1797
======================================================================
1811
======================================================================
1798
====================== Function 38 - draw line. ======================
1812
====================== Function 38 - draw line. ======================
1799
======================================================================
1813
======================================================================
1800
Parameters:
1814
Parameters:
Line 2026... Line 2040...
2026
    * bl = 0 - ecx contains number
2040
    * bl = 0 - ecx contains number
2027
    * bl = 1 - ecx contains pointer to dword-number
2041
    * bl = 1 - ecx contains pointer to dword-number
2028
    * bh = 0 - display in decimal number system
2042
    * bh = 0 - display in decimal number system
2029
    * bh = 1 - display in hexadecimal system
2043
    * bh = 1 - display in hexadecimal system
2030
    * bh = 2 - display in binary system
2044
    * bh = 2 - display in binary system
2031
    * áèòû 16-21 = how many digits to display
2045
    * áèòv 16-21 = how many digits to display
2032
    * áèòû 22-31 reserved and must be set to 0
2046
    * áèòv 22-31 reserved and must be set to 0
2033
  * ecx = number (if bl=0) or pointer (if bl=1)
2047
  * ecx = number (if bl=0) or pointer (if bl=1)
2034
  * edx = [coordinate on axis x]*65536 + [coordinate on axis y]
2048
  * edx = [coordinate on axis x]*65536 + [coordinate on axis y]
2035
  * esi = 0xX0RRGGBB:
2049
  * esi = 0xX0RRGGBB:
2036
    * RR, GG, BB specify the color
2050
    * RR, GG, BB specify the color
2037
    * X = ABnn (bits)
2051
    * X = ABnn (bits)
Line 3558... Line 3572...
3558
  * ecx is ignored
3572
  * ecx is ignored
3559
  * edx = MSR address
3573
  * edx = MSR address
3560
  * esi:edi = high:low dword
3574
  * esi:edi = high:low dword
3561
Returned value:
3575
Returned value:
3562
  * ebx:eax = copy of esi:edi
3576
  * ebx:eax = copy of esi:edi
3563
Çàìå÷àíèÿ:
3577
³àìå÷àíèÿ:
3564
  * If ecx contains nonexistent or not implemented for this processor
3578
  * If ecx contains nonexistent or not implemented for this processor
3565
    MSR, processor will generate an exception in the kernel, which
3579
    MSR, processor will generate an exception in the kernel, which
3566
    will kill the thread.
3580
    will kill the thread.
3567
  * Previously it is necessary to check, whether MSRs are supported
3581
  * Previously it is necessary to check, whether MSRs are supported
3568
    as a whole, with the instruction 'cpuid'. Otherwise processor
3582
    as a whole, with the instruction 'cpuid'. Otherwise processor