Subversion Repositories Kolibri OS

Rev

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

Rev 111 Rev 131
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, add at ~07.06.2004
23
;0.10 all macros optimized by Halyavin A., add at ~07.06.2004
24
;0.11 many macros optimized by halyavin, add at ~30.08.2004
24
;0.11 many macros optimized by Halyavin A., 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
    wordstoreg ebx,x,xs ;x*65536+xs
372
    words2reg ebx,x,xs ;x*65536+xs
373
    wordstoreg ecx,y,ys ;y*65536+ys
373
    words2reg ecx,y,ys ;y*65536+ys
374
    mov  edx,color
374
    mov  edx,color
375
    mov  eax,13
375
    mov  eax,13
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+30
408
    mov ebx,x*65536+36
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
    int 0x40
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,5*65536
416
    mov ebx,6*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
    int 0x40
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
    wordstoreg edx, x , y  ;arg1*65536+arg2
498
    words2reg edx, x , y  ;arg1*65536+arg2
499
    int  0x40
499
    int  0x40
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
    wordstoreg edx, x , y  ;arg1*65536+arg2
507
    words2reg 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
    int  0x40
Line 804... Line 804...
804
local setPal, filltable, reinit, cycle, zadd, noinc
804
local setPal, filltable, reinit, cycle, zadd, noinc
805
local notintable, er, zend, nxt, continue, ex, Gif_skipmap
805
local notintable, er, zend, nxt, continue, ex, Gif_skipmap
806
local Gif_get_sym, shift, nextbl, noblock, loop1, exx
806
local Gif_get_sym, shift, nextbl, noblock, loop1, exx
807
local Gif_output, next, loop2
807
local Gif_output, next, loop2
Line 808... Line 808...
808
 
808
 
Line 809... Line 809...
809
_null equ 0x1000 ; 0x1000
809
_null = 0x1000 ; 0x1000
810
 
810
 
811
;    jmp sss
811
;    jmp sss
812
;    if defined gif_hash_offset
812
;    if defined gif_hash_offset
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 fix 0x1000 ; 0x1000
1104
_null = 0x1000 ; 0x1000
1105
 
1105
 
Line 1106... Line 1106...
1106
    mov  esi,gifsrc           ;“ª § â¥«ì ­  ƒˆ” ä ¨« ¢ ¯ ¬ïâ¨
1106
    mov  esi,gifsrc	      ;“ª § â¥«ì ­  ƒˆ” ä ¨« ¢ ¯ ¬ïâ¨
Line 1289... Line 1289...
1289
    ret
1289
    ret
Line 1290... Line 1290...
1290
 
1290
 
1291
Gif_skipmap:
1291
Gif_skipmap:
1292
; in: ecx - image descriptor, esi - pointer to colormap
1292
; in: ecx - image descriptor, esi - pointer to colormap
1293
; out: edi - pointer to area after colormap
-
 
1294
 
1293
; out: edi - pointer to area after colormap
1295
    and  ecx,111b
1294
    and  ecx,111b
1296
    inc  ecx            ; color map size
1295
    inc  ecx		; color map size
1297
    mov  ebx,1
1296
    mov  ebx,1
1298
    shl  ebx,cl
1297
    shl  ebx,cl