Rev 2956 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2956 | Rev 2972 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | ;; Distributed FOR KOLIBRIOS AND ITS DIRECT BRANCHES ONLY ;; |
4 | ;; Distributed FOR KOLIBRIOS AND ITS DIRECT BRANCHES ONLY ;; |
5 | ;; under conditions of the GNU General Public License ;; |
5 | ;; under conditions of the GNU General Public License ;; |
6 | ;; ;; |
6 | ;; ;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | $Revision: 2956 $ |
9 | $Revision: 2972 $ |
10 | 10 | ||
11 | align 4 |
11 | align 4 |
12 | dtext_asciiz_esi: ; for skins title out |
12 | dtext_asciiz_esi: ; for skins title out |
Line 144... | Line 144... | ||
144 | sar ebx, 16 ; ebx=x |
144 | sar ebx, 16 ; ebx=x |
145 | xchg eax, ebx ; eax=x, ebx=y |
145 | xchg eax, ebx ; eax=x, ebx=y |
Line 146... | Line 146... | ||
146 | 146 | ||
147 | xor ebp, ebp ; font# |
147 | xor ebp, ebp ; font# |
- | 148 | mov [font_check_routine], ebp |
|
- | 149 | test ecx, 0x10000000 |
|
148 | mov [font_check_routine], ebp |
150 | jz @f |
149 | ; inc ebp |
151 | inc ebp |
150 | 152 | @@: |
|
151 | test ecx, ecx |
153 | test ecx, ecx |
152 | js .checked |
154 | js .checked |
153 | inc [font_check_routine]; .check_esi |
155 | inc [font_check_routine]; .check_esi |
154 | .checked: |
156 | .checked: |
Line 225... | Line 227... | ||
225 | ; ebp = font# |
227 | ; ebp = font# |
226 | ; ecx = ascii, zero-extended to 32bits |
228 | ; ecx = ascii, zero-extended to 32bits |
227 | push ecx |
229 | push ecx |
228 | push edx |
230 | push edx |
229 | push ebp |
231 | push ebp |
230 | shl ebp, 5 |
232 | shl ebp, 4 ; font header = 16 bytes |
231 | add ebp, nsvf_info |
233 | add ebp, nsvf_info |
232 | call ch_checkscreen |
234 | call ch_checkscreen |
233 | jb .exit |
235 | jb .exit |
234 | call ch_checkwin |
236 | call ch_checkwin |
235 | jc .exit |
237 | jc .exit |
Line 364... | Line 366... | ||
364 | jmp .draw |
366 | jmp .draw |
Line 365... | Line 367... | ||
365 | 367 | ||
366 | .ritick: |
368 | .ritick: |
367 | test dl, 1 |
369 | test dl, 1 |
- | 370 | jnz .ritick.1 |
|
- | 371 | test dl, 8 |
|
368 | jnz .ritick.1 |
372 | jnz .ritick.2 |
369 | .ritick.0: |
373 | .ritick.0: |
370 | movzx ecx, dh ; y |
374 | movzx ecx, dh ; y |
371 | and cl, 0x0F |
375 | and cl, 0x0F |
372 | sub ebx, ecx |
376 | sub ebx, ecx |
Line 377... | Line 381... | ||
377 | jmp .exit |
381 | jmp .exit |
378 | .ritick.1: |
382 | .ritick.1: |
379 | mov esi, nsvf_data.ri1 ; 8pix-ring |
383 | mov esi, nsvf_data.ri1 ; 8pix-ring |
380 | mov dl, 6 |
384 | mov dl, 6 |
381 | jmp .draw |
385 | jmp .draw |
- | 386 | .ritick.2: |
|
- | 387 | mov esi, nsvf_data.ri2 ; 16pix-ring |
|
- | 388 | mov dl, 14 |
|
- | 389 | jmp .draw |
|
Line 382... | Line 390... | ||
382 | 390 | ||
383 | .lntick.short: |
391 | .lntick.short: |
384 | test dl, 0x06 ; ticks #0, 1 are reserved for |
392 | test dl, 0x06 ; ticks #0, 1 are reserved for |
385 | jz .ritick ; rotational invariants |
393 | jz .ritick ; rotational invariants |