Subversion Repositories Kolibri OS

Rev

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

Rev 205 Rev 485
Line -... Line 1...
-
 
1
include '..\..\..\macros.inc'
1
use32
2
use32
2
        org     0x0
3
        org     0x0
Line 3... Line 4...
3
 
4
 
4
        db      'MENUET01'
5
        db      'MENUET01'
Line 15... Line 16...
15
        mov     ecx, 64001*3/4+1
16
        mov     ecx, 64001*3/4+1
16
        xor     eax, eax
17
        xor     eax, eax
17
        rep     stosd
18
        rep     stosd
Line 18... Line 19...
18
 
19
 
19
        mov     al, 3
20
        mov     al, 3
20
        int     0x40
21
        mcall
Line 21... Line 22...
21
        mov     [curtime], eax
22
        mov     [curtime], eax
22
 
23
 
23
red:
24
red:
24
        push    12
25
        push    12
25
        pop     eax
26
        pop     eax
26
        push    1
27
        push    1
Line 27... Line 28...
27
        pop     ebx
28
        pop     ebx
28
        int     0x40
29
        mcall
29
 
30
 
30
        xor     eax, eax
31
        xor     eax, eax
31
        mov     ebx, 200*65536+325
32
        mov     ebx, 200*65536+325
32
        mov     ecx, 150*65536+225
33
        mov     ecx, 150*65536+225
33
        xor     edx, edx
34
        xor     edx, edx
Line 34... Line 35...
34
        xor     esi, esi
35
        xor     esi, esi
35
        mov     edi, 0x00100000
36
        mov     edi, 0x00100000
36
        int     0x40
37
        mcall
37
 
38
 
38
        mov     al, 8
39
        mov     al, 8
39
        mov     ebx, (325-19)*65536+12
40
        mov     ebx, (325-19)*65536+12
Line 40... Line 41...
40
        mov     ecx, 5*65536+12
41
        mov     ecx, 5*65536+12
41
        inc     edx
42
        inc     edx
42
        mov     esi, 0x00400000
43
        mov     esi, 0x00400000
43
        int     0x40
44
        mcall
44
 
45
 
45
        mov     al, 4
46
        mov     al, 4
46
        mov     ebx, 8*65536+8
47
        mov     ebx, 8*65536+8
Line 47... Line 48...
47
        mov     ecx, 0x00FFFFFF;0x00402020
48
        mov     ecx, 0x00FFFFFF;0x00402020
48
        mov     edx, fire_label
49
        mov     edx, fire_label
49
        push    len00
50
        push    len00
50
        pop     esi
51
        pop     esi
Line 51... Line 52...
51
        int     0x40
52
        mcall
Line 52... Line 53...
52
 
53
 
53
        mov     al, 12
54
        mov     al, 12
54
        push    2
55
        push    2
Line 55... Line 56...
55
        pop     ebx
56
        pop     ebx
56
        int     0x40
57
        mcall
57
 
58
 
58
still:
59
still:
Line 69... Line 70...
69
        jz      button
70
        jz      button
Line 70... Line 71...
70
 
71
 
71
        call    image
72
        call    image
72
        push    3
73
        push    3
73
        pop     eax
74
        pop     eax
74
        int     0x40
75
        mcall
75
        cmp     eax, [curtime]
76
        cmp     eax, [curtime]
76
        jz      still
77
        jz      still
77
        mov     [curtime], eax
78
        mov     [curtime], eax
78
print_fps:
79
print_fps:
79
        push    13
80
        push    13
80
        pop     eax
81
        pop     eax
81
        mov     ebx, (8+27*6)*65536+18
82
        mov     ebx, (8+27*6)*65536+18
82
        mov     ecx, 8*65536+8
83
        mov     ecx, 8*65536+8
83
        xor     edx, edx
84
        xor     edx, edx
84
        int     0x40
85
        mcall
85
        lea     edx, [ebx-10]
86
        lea     edx, [ebx-10]
86
        mov     al, 47
87
        mov     al, 47
87
        mov     ebx, 30000h
88
        mov     ebx, 30000h
88
        xor     ecx, ecx
89
        xor     ecx, ecx
89
        xchg    ecx, [fps]
90
        xchg    ecx, [fps]
90
        mov     esi, 0x00FFFFFF ;0x00400000
91
        mov     esi, 0x00FFFFFF ;0x00400000
91
        int     0x40
92
        mcall
Line 92... Line 93...
92
        jmp     still
93
        jmp     still
93
 
94
 
94
key:
95
key:
95
        mov     al, 2
96
        mov     al, 2
96
        int     0x40
97
        mcall
97
        cmp     ah, 1Bh   ;
98
        cmp     ah, 1Bh   ;
98
        jne     still
99
        jne     still
99
button:
100
button:
100
; we have only one button, close
101
; we have only one button, close
Line 101... Line 102...
101
        or      eax, -1
102
        or      eax, -1
Line 102... Line 103...
102
        int     0x40
103
        mcall
103
 
104