Subversion Repositories Kolibri OS

Rev

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 31... Line 31...
31
    add  ebx,xs
31
    add  ebx,xs
32
    shl  ecx,16
32
    shl  ecx,16
33
    add  ecx,ys
33
    add  ecx,ys
34
    mov  edx,color
34
    mov  edx,color
35
    mov  eax,13
35
    mov  eax,13
36
    int  0x40
36
    mcall
37
}
37
}
Line 38... Line 38...
38
 
38
 
39
; FPS - Set Frame Per Second Display
39
; FPS - Set Frame Per Second Display
40
fps_show_frequency=40
40
fps_show_frequency=40
Line 48... Line 48...
48
fps      dd 0
48
fps      dd 0
49
ttt      dd 0
49
ttt      dd 0
50
spdat:
50
spdat:
51
get_time:
51
get_time:
52
    mov eax,3
52
    mov eax,3
53
    int 0x40
53
    mcall
54
    cmp eax,[savetime]
54
    cmp eax,[savetime]
55
    jne new_time
55
    jne new_time
56
    inc [fps_cntr]
56
    inc [fps_cntr]
57
    cmp dword [ttt],0
57
    cmp dword [ttt],0
58
    je  out_fps
58
    je  out_fps
Line 67... Line 67...
67
if ~(delcolor eq )
67
if ~(delcolor eq )
68
    mov ebx,x*65536+30
68
    mov ebx,x*65536+30
69
    mov ecx,y*65536+7
69
    mov ecx,y*65536+7
70
    mov edx,delcolor
70
    mov edx,delcolor
71
    mov eax,13
71
    mov eax,13
72
    int 0x40
72
    mcall
73
end if
73
end if
74
    mov dword [ttt],fps_show_frequency
74
    mov dword [ttt],fps_show_frequency
75
    mov eax,47
75
    mov eax,47
76
    mov ebx,5*65536
76
    mov ebx,5*65536
77
;   mov bl,0
77
;   mov bl,0
78
    mov edx,x*65536+y
78
    mov edx,x*65536+y
79
    mov esi,color
79
    mov esi,color
80
    mov ecx,[fps]
80
    mov ecx,[fps]
81
    int 0x40
81
    mcall
82
no_out_fps:
82
no_out_fps:
83
}
83
}
Line 151... Line 151...
151
else
151
else
152
    mov  edx,arg1
152
    mov  edx,arg1
153
    shl  edx,16
153
    shl  edx,16
154
    add  edx,arg2
154
    add  edx,arg2
155
end if    
155
end if    
156
    int  0x40
156
    mcall
157
  nodi:
157
  nodi:
158
}
158
}
Line 159... Line 159...
159
 
159
 
160
macro setimg arg1,arg2,arg3
160
macro setimg arg1,arg2,arg3
Line 171... Line 171...
171
else   
171
else   
172
    mov  edx,arg1
172
    mov  edx,arg1
173
    shl  edx,16
173
    shl  edx,16
174
    add  edx,arg2
174
    add  edx,arg2
175
end if   
175
end if   
176
    int  0x40
176
    mcall
177
}
177
}
Line 178... Line 178...
178
 
178
 
179
;Not optimiz
179
;Not optimiz
180
macro getimg imgsrc,x,y,xs,ys,imgdest
180
macro getimg imgsrc,x,y,xs,ys,imgdest
Line 449... Line 449...
449
;local qwe,bmpfn
449
;local qwe,bmpfn
Line 450... Line 450...
450
 
450
 
451
    mov  dword [fileinfo+8],1 ; how many blocks to read (1)
451
    mov  dword [fileinfo+8],1 ; how many blocks to read (1)
452
    mov  eax,58
452
    mov  eax,58
453
    mov  ebx,fileinfo
453
    mov  ebx,fileinfo
454
    int  0x40
454
    mcall
455
    mov  eax,[bmp_load_area+2]
455
    mov  eax,[bmp_load_area+2]
456
    shr  eax,9 ; ¯®¤¥«¨¬ ­  512 ¨ ¯à¨¡ ¢¨¬ 1 - ¯®«ã稬 ç¨á«® ¡«®ª®¢
456
    shr  eax,9 ; ¯®¤¥«¨¬ ­  512 ¨ ¯à¨¡ ¢¨¬ 1 - ¯®«ã稬 ç¨á«® ¡«®ª®¢
457
    inc  eax
457
    inc  eax
458
    mov  dword [fileinfo+8],eax
458
    mov  dword [fileinfo+8],eax
459
    mov  eax,58
459
    mov  eax,58
460
    mov  ebx,fileinfo
460
    mov  ebx,fileinfo
Line 461... Line 461...
461
    int  0x40
461
    mcall
462
 
462
 
463
;     jmp  qwe
463
;     jmp  qwe
464
;bmpfn db bmp_file_name
464
;bmpfn db bmp_file_name
465
;qwe:
465
;qwe:
466
;     mov eax,6
466
;     mov eax,6
467
;     mov ebx,bmpfn
467
;     mov ebx,bmpfn
468
;     mov ecx,0
468
;     mov ecx,0
469
;     mov edx,0xFFFFFF
469
;     mov edx,0xFFFFFF
470
;     mov esi,bmp_load_area
470
;     mov esi,bmp_load_area
Line 471... Line 471...
471
;     mov edi,0
471
;     mov edi,0
472
;     int 0x40
472
;     mcall
473
 
473
 
474
;  convert:
474
;  convert: