Board.KolibriOS.org

Official KolibriOS board
It is currently Sun Mar 29, 2020 9:46 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Dec 24, 2019 10:47 am 
Offline

Joined: Thu May 23, 2019 10:50 pm
Posts: 33
Всем дратути!
Есть небольшой вопрос по сис функции 0: как ей пользоваться? Я битый час пытался нарисовать окно со скином!

_________________
Монтировка решит всё 8)


Top
   
PostPosted: Tue Dec 24, 2019 3:02 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 465
Гордон Фримен wrote:
Есть небольшой вопрос по сис функции 0: как ей пользоваться?
As described in documentation: /kernel/trunk/docs/sysfuncs.txt

Гордон Фримен wrote:
Я битый час пытался нарисовать окно со скином!
Examples are located in /programs/develop/examples/*


Top
   
PostPosted: Tue Dec 24, 2019 5:52 pm 
Offline

Joined: Thu May 23, 2019 10:50 pm
Posts: 33
dunkaist, вы меня немного не поняли. Я внимательно прочитал описание системной функции, разобрал примеры, но так и не дошёл умом, как её использовать.
_______________________________________________________________________________
dunkaist, you do not understand me a little. I carefully read the description of the system function, sorted out the examples, but did not get my mind how to use it.

_________________
Монтировка решит всё 8)


Top
   
PostPosted: Tue Dec 24, 2019 6:29 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 465
What exactly goes wrong?
  • Your code doesn't compile
  • Your code doesn't work as expected
  • You don't understand how to write code
  • You don't understand the code of examples
  • You don't understand documentation


Top
   
PostPosted: Wed Dec 25, 2019 6:56 am 
Offline

Joined: Thu May 23, 2019 10:50 pm
Posts: 33
Я не понимаю документацию.

I don't understand documentation

_________________
Монтировка решит всё 8)


Top
   
PostPosted: Wed Dec 25, 2019 7:46 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 465
Calling a system function in kolibri is done in three steps:
  1. Write the function number to the register eax. For the function 0 write 0.
  2. Write parameters of the function to registers specified in corresponding documentation section. For the function 0 these are ebx, ecx, edx, esi, edi.
  3. Execute int 0x40 instruction.

Read sysfuncs.txt file and write parameters to registers one by one.
Value for which register you don't know?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited