Rev 109 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 109 | Rev 485 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | ;0.05 fullimg, collimg ~05.05.2004 |
18 | ;0.05 fullimg, collimg ~05.05.2004 |
19 | ;0.06 getimg ~09.05.2004 |
19 | ;0.06 getimg ~09.05.2004 |
20 | ;0.07 convbmp ~13.05.2004 |
20 | ;0.07 convbmp ~13.05.2004 |
21 | ;0.08 fps ~14.05.2004 |
21 | ;0.08 fps ~14.05.2004 |
22 | ;0.09 drawfbox ~03.06.2004 |
22 | ;0.09 drawfbox ~03.06.2004 |
23 | ;0.10 all macros optimized by Halyavin A., add at ~07.06.2004 |
23 | ;0.10 all macros optimized by halyavin, add at ~07.06.2004 |
24 | ;0.11 many macros optimized by Halyavin A., add at ~30.08.2004 |
24 | ;0.11 many macros optimized by halyavin, add at ~30.08.2004 |
25 | ;0.12 bmptoimg ~07.09.2004 |
25 | ;0.12 bmptoimg ~07.09.2004 |
26 | ;0.13 imgtoimg ~08.09.2004 |
26 | ;0.13 imgtoimg ~08.09.2004 |
27 | ;0.14 imgtoimg modify not brake bmp pict! ~09.09.2004 |
27 | ;0.14 imgtoimg modify not brake bmp pict! ~09.09.2004 |
28 | ;0.15 giftoimg, giftoani ~10.09.2004 |
28 | ;0.15 giftoimg, giftoani ~10.09.2004 |
29 | ;0.16 setframe, rgbtobgr, setbmp deleted ~20.09.2004 |
29 | ;0.16 setframe, rgbtobgr, setbmp deleted ~20.09.2004 |
Line 367... | Line 367... | ||
367 | 367 | ||
368 | 368 | ||
369 | ;DrawBox |
369 | ;DrawBox |
370 | macro drawfbox x,y,xs,ys,color |
370 | macro drawfbox x,y,xs,ys,color |
371 | { |
371 | { |
372 | words2reg ebx,x,xs ;x*65536+xs |
372 | wordstoreg ebx,x,xs ;x*65536+xs |
373 | words2reg ecx,y,ys ;y*65536+ys |
373 | wordstoreg ecx,y,ys ;y*65536+ys |
374 | mov edx,color |
374 | mov edx,color |
375 | mov eax,13 |
375 | mov eax,13 |
Line 376... | Line 376... | ||
376 | int 0x40 |
376 | mcall |
377 | } |
377 | } |
378 | 378 | ||
Line 388... | Line 388... | ||
388 | fps dd 0 |
388 | fps dd 0 |
389 | ttt dd 0 |
389 | ttt dd 0 |
390 | spdat: |
390 | spdat: |
391 | get_time: |
391 | get_time: |
392 | mov eax,3 |
392 | mov eax,3 |
393 | int 0x40 |
393 | mcall |
394 | cmp eax,[savetime] |
394 | cmp eax,[savetime] |
395 | jne new_time |
395 | jne new_time |
396 | inc [fps_cntr] |
396 | inc [fps_cntr] |
397 | cmp dword [ttt],0 |
397 | cmp dword [ttt],0 |
398 | je out_fps |
398 | je out_fps |
Line 403... | Line 403... | ||
403 | mov ebx,[fps_cntr] |
403 | mov ebx,[fps_cntr] |
404 | mov [fps],ebx |
404 | mov [fps],ebx |
405 | mov [fps_cntr],0 |
405 | mov [fps_cntr],0 |
406 | out_fps: |
406 | out_fps: |
407 | if ~(delcolor eq ) |
407 | if ~(delcolor eq ) |
408 | mov ebx,x*65536+36 |
408 | mov ebx,x*65536+30 |
409 | mov ecx,y*65536+7 |
409 | mov ecx,y*65536+7 |
410 | mov edx,delcolor |
410 | mov edx,delcolor |
411 | mov eax,13 |
411 | mov eax,13 |
412 | int 0x40 |
412 | mcall |
413 | end if |
413 | end if |
414 | mov dword [ttt],fps_show_frequency |
414 | mov dword [ttt],fps_show_frequency |
415 | mov eax,47 |
415 | mov eax,47 |
416 | mov ebx,6*65536 |
416 | mov ebx,5*65536 |
417 | ; mov bl,0 |
417 | ; mov bl,0 |
418 | mov edx,x*65536+y |
418 | mov edx,x*65536+y |
419 | mov esi,color |
419 | mov esi,color |
420 | mov ecx,[fps] |
420 | mov ecx,[fps] |
421 | int 0x40 |
421 | mcall |
422 | no_out_fps: |
422 | no_out_fps: |
423 | } |
423 | } |
Line 424... | Line 424... | ||
424 | 424 | ||
425 | ; COLLIMG - Collusion image's |
425 | ; COLLIMG - Collusion image's |
Line 493... | Line 493... | ||
493 | add ebx,8 |
493 | add ebx,8 |
494 | mov cx,[arg3] |
494 | mov cx,[arg3] |
495 | shl ecx,16 |
495 | shl ecx,16 |
496 | add cx,[arg3+4] |
496 | add cx,[arg3+4] |
497 | ; wordstoreg ecx,[arg3],[arg3+4] |
497 | ; wordstoreg ecx,[arg3],[arg3+4] |
498 | words2reg edx, x , y ;arg1*65536+arg2 |
498 | wordstoreg edx, x , y ;arg1*65536+arg2 |
499 | int 0x40 |
499 | mcall |
500 | } |
500 | } |
Line 501... | Line 501... | ||
501 | 501 | ||
502 | macro setframe x , y ,arg3 |
502 | macro setframe x , y ,arg3 |
503 | { |
503 | { |
504 | mov eax,7 |
504 | mov eax,7 |
505 | mov ebx,arg3 |
505 | mov ebx,arg3 |
506 | add ebx,8 |
506 | add ebx,8 |
507 | words2reg edx, x , y ;arg1*65536+arg2 |
507 | wordstoreg edx, x , y ;arg1*65536+arg2 |
508 | add edx,dword [arg3] |
508 | add edx,dword [arg3] |
509 | mov ecx,dword [arg3+4] |
509 | mov ecx,dword [arg3+4] |
510 | int 0x40 |
510 | mcall |
Line 511... | Line 511... | ||
511 | } |
511 | } |
512 | 512 | ||
Line 1099... | Line 1099... | ||
1099 | local setPal, filltable, reinit, cycle, zadd, noinc |
1099 | local setPal, filltable, reinit, cycle, zadd, noinc |
1100 | local notintable, er, zend, nxt, continue, ex, Gif_skipmap |
1100 | local notintable, er, zend, nxt, continue, ex, Gif_skipmap |
1101 | local Gif_get_sym, shift, nextbl, noblock, loop1, exx |
1101 | local Gif_get_sym, shift, nextbl, noblock, loop1, exx |
1102 | local Gif_output, next, loop2 |
1102 | local Gif_output, next, loop2 |
Line 1103... | Line 1103... | ||
1103 | 1103 | ||
Line 1104... | Line 1104... | ||
1104 | _null equ 0x1000 ; 0x1000 |
1104 | _null fix 0x1000 ; 0x1000 |
1105 | 1105 | ||
Line 1106... | Line 1106... | ||
1106 | mov esi,gifsrc ;ª § ⥫ì ä ¨« ¢ ¯ ¬ï⨠|
1106 | mov esi,gifsrc ;ª § ⥫ì ä ¨« ¢ ¯ ¬ï⨠|