Subversion Repositories Kolibri OS

Rev

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

Rev 2269 Rev 2271
Line 5... Line 5...
5
;   system      : MenuetOS
5
;   system      : MenuetOS
6
;   compiler    : fasm
6
;   compiler    : fasm
7
;
7
;
8
;
8
;
9
TIMEOUT EQU 2
9
TIMEOUT EQU 2
-
 
10
IMG_X equ 512
-
 
11
IMG_Y equ 384
-
 
12
 
10
use32
13
use32
Line 11... Line 14...
11
 
14
 
Line 12... Line 15...
12
               org    0x0
15
               org    0x0
Line 94... Line 97...
94
    cmp eax,300
97
    cmp eax,300
95
    jne oop
98
    jne oop
Line 96... Line 99...
96
 
99
 
97
    mov eax,7    ;put image
100
    mov eax,7    ;put image
98
    mov ebx,the_mem
101
    mov ebx,the_mem
99
    mov ecx,512*65536+384
102
    mov ecx,IMG_X*65536+IMG_Y
100
    mov edx,0
103
    mov edx,0
Line 101... Line 104...
101
    int 0x40
104
    int 0x40
102
 
105
 
Line 202... Line 205...
202
 
205
 
203
    mov  eax,12                    ; function 12:tell os about windowdraw
206
    mov  eax,12                    ; function 12:tell os about windowdraw
204
    mov  ebx,1                     ; 1, start of draw
207
    mov  ebx,1                     ; 1, start of draw
Line 205... Line 208...
205
    int  0x40
208
    int  0x40
206
 
209
 
207
	mov  eax,48
210
	mov  eax,48  ;get skin width
208
	mov  ebx,4
211
	mov  ebx,4
209
	int  0x40
212
	int  0x40
210
	mov  esi, eax
213
	mov  esi, eax
211
                                   ; DRAW WINDOW
214
                                   ; DRAW WINDOW
212
    mov  eax,0                     ; function 0 : define and draw window
215
    mov  eax,0                     ; function 0 : define and draw window
213
    mov  ebx,100*65536+512+9         ; [x start] *65536 + [x size]
216
    mov  ebx,100*65536+IMG_X+9         ; [x start] *65536 + [x size]
214
    mov  ecx,100*65536+384+4         ; [y start] *65536 + [y size]
217
    mov  ecx,100*65536+IMG_Y+4         ; [y start] *65536 + [y size]
215
	add  ecx, esi
218
	add  ecx, esi
216
	mov  edx,0x74000000 	  	   ; color of work area RRGGBB,8->color gl
219
	mov  edx,0x74000000 	  	   ; color of work area RRGGBB,8->color gl