Rev 1391 | Rev 2384 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1391 | Rev 2288 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; ;; |
6 | ;; ;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | $Revision: 1391 $ |
9 | $Revision: 2288 $ |
10 | 10 | ||
11 | ;============================================================================== |
11 | ;============================================================================== |
Line 129... | Line 129... | ||
129 | cmp [buttontype], 0 |
129 | cmp [buttontype], 0 |
130 | je @f |
130 | je @f |
131 | call button._.incecx2 |
131 | call button._.incecx2 |
Line 132... | Line 132... | ||
132 | 132 | ||
- | 133 | ; set button height counter |
|
133 | ; set button height counter |
134 | @@: |
Line 134... | Line 135... | ||
134 | @@: mov edx, edi |
135 | mov edx, edi |
135 | 136 | ||
136 | .next_line: |
137 | .next_line: |
137 | call button._.button_dececx |
138 | call button._.button_dececx |
Line 378... | Line 379... | ||
378 | ;? |
379 | ;? |
379 | ;------------------------------------------------------------------------------ |
380 | ;------------------------------------------------------------------------------ |
380 | sub cl, 0x20 |
381 | sub cl, 0x20 |
381 | jnc @f |
382 | jnc @f |
382 | xor cl, cl |
383 | xor cl, cl |
- | 384 | @@: |
|
383 | @@: sub ch, 0x20 |
385 | sub ch, 0x20 |
384 | jnc @f |
386 | jnc @f |
385 | xor ch, ch |
387 | xor ch, ch |
- | 388 | @@: |
|
386 | @@: rol ecx, 16 |
389 | rol ecx, 16 |
387 | sub cl, 0x20 |
390 | sub cl, 0x20 |
388 | jnc @f |
391 | jnc @f |
389 | xor cl, cl |
392 | xor cl, cl |
- | 393 | @@: |
|
390 | @@: rol ecx, 16 |
394 | rol ecx, 16 |
391 | ret |
395 | ret |
Line 392... | Line 396... | ||
392 | 396 | ||
393 | ;------------------------------------------------------------------------------ |
397 | ;------------------------------------------------------------------------------ |
394 | button._.incecx: ;///////////////////////////////////////////////////////////// |
398 | button._.incecx: ;///////////////////////////////////////////////////////////// |
395 | ;------------------------------------------------------------------------------ |
399 | ;------------------------------------------------------------------------------ |
396 | ;? |
400 | ;? |
397 | ;------------------------------------------------------------------------------ |
401 | ;------------------------------------------------------------------------------ |
398 | add cl, 0x20 |
402 | add cl, 0x20 |
399 | jnc @f |
403 | jnc @f |
- | 404 | or cl, -1 |
|
400 | or cl, -1 |
405 | @@: |
401 | @@: add ch, 0x20 |
406 | add ch, 0x20 |
402 | jnc @f |
407 | jnc @f |
- | 408 | or ch, -1 |
|
403 | or ch, -1 |
409 | @@: |
404 | @@: rol ecx, 16 |
410 | rol ecx, 16 |
405 | add cl, 0x20 |
411 | add cl, 0x20 |
406 | jnc @f |
412 | jnc @f |
- | 413 | or cl, -1 |
|
407 | or cl, -1 |
414 | @@: |
408 | @@: rol ecx, 16 |
415 | rol ecx, 16 |
Line 409... | Line 416... | ||
409 | ret |
416 | ret |
410 | 417 | ||
411 | ;------------------------------------------------------------------------------ |
418 | ;------------------------------------------------------------------------------ |
412 | button._.incecx2: ;//////////////////////////////////////////////////////////// |
419 | button._.incecx2: ;//////////////////////////////////////////////////////////// |
413 | ;------------------------------------------------------------------------------ |
420 | ;------------------------------------------------------------------------------ |
414 | ;? |
421 | ;? |
415 | ;------------------------------------------------------------------------------ |
422 | ;------------------------------------------------------------------------------ |
416 | add cl, 0x14 |
423 | add cl, 0x14 |
- | 424 | jnc @f |
|
417 | jnc @f |
425 | or cl, -1 |
418 | or cl, -1 |
426 | @@: |
419 | @@: add ch, 0x14 |
427 | add ch, 0x14 |
- | 428 | jnc @f |
|
420 | jnc @f |
429 | or ch, -1 |
421 | or ch, -1 |
430 | @@: |
422 | @@: rol ecx, 16 |
431 | rol ecx, 16 |
423 | add cl, 0x14 |
432 | add cl, 0x14 |
- | 433 | jnc @f |
|
424 | jnc @f |
434 | or cl, -1 |
425 | or cl, -1 |
435 | @@: |
Line 426... | Line 436... | ||
426 | @@: rol ecx, 16 |
436 | rol ecx, 16 |
427 | ret |
437 | ret |
428 | 438 | ||
Line 438... | Line 448... | ||
438 | mov al, 1 |
448 | mov al, 1 |
439 | cmp edi, 20 |
449 | cmp edi, 20 |
440 | jg @f |
450 | jg @f |
441 | mov al, 2 |
451 | mov al, 2 |
Line -... | Line 452... | ||
- | 452 | ||
442 | 453 | @@: |
|
443 | @@: sub cl, al |
454 | sub cl, al |
444 | jnc @f |
455 | jnc @f |
- | 456 | xor cl, cl |
|
445 | xor cl, cl |
457 | @@: |
446 | @@: sub ch, al |
458 | sub ch, al |
447 | jnc @f |
459 | jnc @f |
- | 460 | xor ch, ch |
|
448 | xor ch, ch |
461 | @@: |
449 | @@: rol ecx, 16 |
462 | rol ecx, 16 |
450 | sub cl, al |
463 | sub cl, al |
451 | jnc @f |
464 | jnc @f |
- | 465 | xor cl, cl |
|
452 | xor cl, cl |
466 | @@: |
Line 453... | Line 467... | ||
453 | @@: rol ecx, 16 |
467 | rol ecx, 16 |
Line 454... | Line 468... | ||
454 | 468 | ||
455 | pop eax |
469 | pop eax |