Subversion Repositories Kolibri OS

Rev

Rev 5892 | Rev 6832 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5892 Rev 5900
Line 47... Line 47...
47
    add     eax, NTCTRL_READY
47
    add     eax, NTCTRL_READY
48
  @@:
48
  @@:
49
    mcall   5, 1
49
    mcall   5, 1
50
    cmpe    byte [eax], 0, @b
50
    cmpe    byte [eax], 0, @b
Line -... Line 51...
-
 
51
 
-
 
52
 ;; CONFIG PBAR
-
 
53
    mov     eax, [ctrl.addr]
-
 
54
    add     eax, NTCTRL_PBAR_MAX
-
 
55
    mov     dword [eax], 9
-
 
56
 
-
 
57
    mov     eax, [ctrl.addr]
-
 
58
    add     eax, NTCTRL_PBAR_CUR
-
 
59
    mov     dword [eax], 9
-
 
60
 
-
 
61
    mov     eax, [ctrl.addr]
-
 
62
    add     eax, NTCTRL_APPLY_PBAR
-
 
63
    mov     byte [eax], 1
51
 
64
 
52
 ;; LOOP OF NOTIFIES CHANGES
65
 ;; LOOP OF NOTIFIES CHANGES
53
  @@:
66
  @@:
54
  ;; SHIFT TEXT
67
  ;; SHIFT TEXT
55
    call    shift
68
    call    shift
Line 66... Line 79...
66
    mov     eax, [ctrl.addr]
79
    mov     eax, [ctrl.addr]
67
    add     eax, NTCTRL_APPLY_TEXT
80
    add     eax, NTCTRL_APPLY_TEXT
68
    mov     byte [eax], 1
81
    mov     byte [eax], 1
Line 69... Line 82...
69
 
82
 
70
  ;; CLOSE NOTIFY IF TIME IS END
83
  ;; CLOSE NOTIFY IF TIME IS END
Line 71... Line 84...
71
    cmpe    byte [sz_time], "0" - 1, .exit
84
    cmpe    byte [sz_time], "0", .exit
72
 
85
 
73
  ;; WAIT AND DO NEXT ITERATION
86
  ;; WAIT AND DO NEXT ITERATION
Line 74... Line 87...
74
    mcall   5, 10
87
    mcall   5, 20
75
    jmp     @b
88
    jmp     @b
76
 
89
 
Line 93... Line 106...
93
    inc     eax
106
    inc     eax
94
    cmpne   byte [eax + 1], 0, @b
107
    cmpne   byte [eax + 1], 0, @b
95
    mov     [eax], dh
108
    mov     [eax], dh
Line 96... Line 109...
96
 
109
 
97
    inc     byte [timer]
110
    inc     byte [timer]
98
    cmpne   byte [timer], 10, .skip_changes
111
    cmpne   byte [timer], 5, .skip_changes
Line 99... Line 112...
99
    sub     byte [timer], 10
112
    sub     byte [timer], 5
100
 
113
 
Line 101... Line 114...
101
 ;; CHANGE TIMER TEXT
114
 ;; CHANGE TIMER TEXT
Line 124... Line 137...
124
 ;; APPLY NEW TITLE
137
 ;; APPLY NEW TITLE
125
    mov     eax, [ctrl.addr]
138
    mov     eax, [ctrl.addr]
126
    add     eax, NTCTRL_APPLY_TITLE
139
    add     eax, NTCTRL_APPLY_TITLE
127
    mov     byte [eax], 1
140
    mov     byte [eax], 1
Line -... Line 141...
-
 
141
 
-
 
142
 ;; CHANGE PBAR
-
 
143
    mov     eax, [ctrl.addr]
-
 
144
    add     eax, NTCTRL_PBAR_CUR
-
 
145
    dec     dword [eax]
-
 
146
 
-
 
147
 ;; APPLY PBAR
-
 
148
    mov     eax, [ctrl.addr]
-
 
149
    add     eax, NTCTRL_APPLY_PBAR
-
 
150
    mov     byte [eax], 1
128
 
151
 
Line 129... Line 152...
129
 .skip_changes:
152
 .skip_changes:
130
 
153
 
131
    ret
154
    ret
Line 146... Line 169...
146
 
169
 
147
    ret
170
    ret
Line 148... Line 171...
148
;-------------------------------------------------------------------------------
171
;-------------------------------------------------------------------------------
149
 
172
 
150
 sz_time:
173
 sz_time:
151
    db "5", 0
174
    db "9", 0
152
 sz_text:
175
 sz_text:
153
    db "Hello, World!!! It is a marquee!    ", 0
176
    db "Hello, World!!! It is a marquee!    ", 0
154
 sz_quote:
177
 sz_quote:
155
    db "'", 0
178
    db "'", 0
156
 sz_sec_line_start:
179
 sz_sec_line_start:
157
    db 10, "Will close after ", 0
180
    db 10, "Will close after ", 0
158
 sz_sec_line_end:
181
 sz_sec_line_end:
159
    db " seconds", 0
182
    db " seconds", 0
Line 160... Line 183...
160
 sz_flags:
183
 sz_flags:
161
    db "Idc", 0
184
    db "Idcp", 0
-
 
185
 
162
 
186
 fi_launch:
Line 163... Line 187...
163
 fi_launch:
187
    dd	    7, 0, params, 0, 0
164
    dd	    7, 0, params, 0, 0
188
    ;db      "/usbhd0/2/svn/programs/system/notify3/notify", 0
165
    db	    "@notify", 0
189
    db	    "@notify", 0