Rev 1365 | Rev 1380 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1365 | Rev 1369 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | ;; |
55 | ;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 57... | Line 57... | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | include 'macros.inc' |
58 | include 'macros.inc' |
Line 59... | Line 59... | ||
59 | 59 | ||
Line 60... | Line 60... | ||
60 | $Revision: 1365 $ |
60 | $Revision: 1369 $ |
Line 1243... | Line 1243... | ||
1243 | and [esp+32],dword 0 |
1243 | and [esp+32],dword 0 |
1244 | mov [esp+20],eax |
1244 | mov [esp+20],eax |
1245 | ret |
1245 | ret |
Line 1246... | Line 1246... | ||
1246 | 1246 | ||
- | 1247 | display_number: |
|
- | 1248 | ;It is not optimization |
|
- | 1249 | mov eax, ebx |
|
- | 1250 | mov ebx, ecx |
|
- | 1251 | mov ecx, edx |
|
- | 1252 | mov edx, esi |
|
1247 | display_number: |
- | |
1248 | 1253 | mov esi, edi |
|
1249 | ; eax = print type, al=0 -> ebx is number |
1254 | ; eax = print type, al=0 -> ebx is number |
1250 | ; al=1 -> ebx is pointer |
1255 | ; al=1 -> ebx is pointer |
1251 | ; ah=0 -> display decimal |
1256 | ; ah=0 -> display decimal |
1252 | ; ah=1 -> display hexadecimal |
1257 | ; ah=1 -> display hexadecimal |
Line 5369... | Line 5374... | ||
5369 | ret |
5374 | ret |
Line 5370... | Line 5375... | ||
5370 | 5375 | ||
Line 5371... | Line 5376... | ||
5371 | align 4 |
5376 | align 4 |
- | 5377 | ||
- | 5378 | syscall_threads: ; CreateThreads |
|
- | 5379 | ; eax=1 create thread |
|
- | 5380 | ; |
|
- | 5381 | ; ebx=thread start |
|
- | 5382 | ; ecx=thread stack value |
|
Line 5372... | Line 5383... | ||
5372 | 5383 | ; |
|
- | 5384 | ; on return : eax = pid |
|
5373 | syscall_threads: ; CreateThreads |
5385 | |
5374 | 5386 | call new_sys_threads |
|
Line 5375... | Line 5387... | ||
5375 | call sys_threads |
5387 | |
Line 5376... | Line 5388... | ||
5376 | mov [esp+36],eax |
5388 | mov [esp+32],eax |
Line 5383... | Line 5395... | ||
5383 | call app_stack_handler ; Stack status |
5395 | call app_stack_handler ; Stack status |
Line 5384... | Line 5396... | ||
5384 | 5396 | ||
5385 | ; mov [check_idle_semaphore],5 ; enable these for zero delay |
5397 | ; mov [check_idle_semaphore],5 ; enable these for zero delay |
Line 5386... | Line 5398... | ||
5386 | ; call change_task ; between sent packet |
5398 | ; call change_task ; between sent packet |
5387 | 5399 | ||
Line 5388... | Line 5400... | ||
5388 | mov [esp+36],eax |
5400 | mov [esp+32],eax |
Line 5389... | Line 5401... | ||
5389 | ret |
5401 | ret |