Subversion Repositories Kolibri OS

Rev

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

Rev 101 Rev 102
Line 99... Line 99...
99
ret
99
ret
Line 100... Line 100...
100
 
100
 
101
 
101
 
102
; Find next task to execute
102
; Find next task to execute
-
 
103
; result: ebx = number of the selected task
-
 
104
;         eax = 1  if the task is the same
-
 
105
;         edi = address of the data for the task in ebx
103
; result: ebx = number of the selected task
106
;         [0x3000] = ebx and [0x3010] = edi
104
;         [0xffff] = 1  if the task is the same
107
;         corrupts other regs
-
 
108
find_next_task:
105
find_next_task:
109
        mov   ebx, [0x3000]
Line 106... Line 110...
106
        mov   ebx,[0x3000]
110
        mov   edi, [0x3010]
107
        mov   [prev_slot], ebx
111
        mov   [prev_slot], ebx
108
 
112