Rev 701 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 701 | Rev 799 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | public _debug_out@4 |
31 | public _debug_out@4 |
32 | public _debug_out_hex@4 |
32 | public _debug_out_hex@4 |
33 | public _create_thread@12 |
33 | public _create_thread@12 |
Line 34... | Line 34... | ||
34 | 34 | ||
Line 35... | Line 35... | ||
35 | 35 | ||
36 | ;public _memset |
36 | public _memset |
37 | 37 | ||
38 | struc FILEIO |
38 | struc FILEIO |
Line 79... | Line 79... | ||
79 | pop ebx |
79 | pop ebx |
80 | ret 8 |
80 | ret 8 |
Line 81... | Line 81... | ||
81 | 81 | ||
82 | align 4 |
82 | align 4 |
83 | _create_thread@12: |
83 | _create_thread@12: |
84 | .thr_proc equ esp+4 |
84 | .thr_proc equ esp+8 |
85 | .param equ esp+8 |
85 | .param equ esp+12 |
- | 86 | .stack_size equ esp+16 |
|
- | 87 | ||
Line 86... | Line 88... | ||
86 | .stack_size equ esp+12 |
88 | push ebx |
87 | 89 | ||
88 | mov eax, 68 |
90 | mov eax, 68 |
89 | mov ebx, 12 |
91 | mov ebx, 12 |
Line 102... | Line 104... | ||
102 | 104 | ||
103 | mov eax, 51 |
105 | mov eax, 51 |
104 | mov ebx, 1 |
106 | mov ebx, 1 |
105 | mov ecx, [.thr_proc] |
107 | mov ecx, [.thr_proc] |
- | 108 | int 0x40 |
|
106 | int 0x40 |
109 | pop ebx |
107 | ret 12 |
110 | ret 12 |
108 | .fail: |
111 | .fail: |
- | 112 | not eax |
|
109 | not eax |
113 | pop ebx |
110 | ret 12 |
114 | ret 12 |
111 | align 4 |
115 | align 4 |
112 | .exit_point: |
116 | .exit_point: |
113 | pop ecx |
117 | pop ecx |
Line 416... | Line 420... | ||
416 | ;arg3 - xsize |
420 | ;arg3 - xsize |
417 | ;arg4 - ysize |
421 | ;arg4 - ysize |
418 | ;arg5 - color |
422 | ;arg5 - color |
419 | push ebx ecx |
423 | push ebx ecx |
420 | mov eax,13 |
424 | mov eax,13 |
421 | mov ebx,[esp+8] |
425 | mov ebx,[esp+12] |
422 | shl ebx,16 |
426 | shl ebx,16 |
423 | mov bx,[esp+16] |
427 | mov bx,[esp+20] |
424 | mov ecx,[esp+12] |
428 | mov ecx,[esp+16] |
425 | shl ecx,16 |
429 | shl ecx,16 |
426 | mov cx,[esp+20] |
430 | mov cx,[esp+24] |
427 | mov edx,[esp+24] |
431 | mov edx,[esp+28] |
428 | int 0x40 |
432 | int 0x40 |
429 | pop ecx ebx |
433 | pop ecx ebx |
430 | ret 20 |
434 | ret 20 |
Line 431... | Line 435... | ||
431 | 435 | ||
Line 435... | Line 439... | ||
435 | ;arg3 - color |
439 | ;arg3 - color |
436 | ;arg4 - text |
440 | ;arg4 - text |
437 | ;arg5 - len |
441 | ;arg5 - len |
438 | push ebx ecx esi |
442 | push ebx ecx esi |
439 | mov eax,4 |
443 | mov eax,4 |
440 | mov ebx,[esp+12] |
444 | mov ebx,[esp+16] |
441 | shl ebx,16 |
445 | shl ebx,16 |
442 | mov bx,[esp+16] |
446 | mov bx,[esp+20] |
443 | mov ecx,[esp+20] |
447 | mov ecx,[esp+24] |
444 | mov edx,[esp+24] |
448 | mov edx,[esp+28] |
445 | mov esi,[esp+28] |
449 | mov esi,[esp+32] |
446 | int 0x40 |
450 | int 0x40 |
447 | pop esi ecx ebx |
451 | pop esi ecx ebx |
448 | ret 20 |
452 | ret 20 |
Line 449... | Line 453... | ||
449 | 453 |