Rev 380 | Rev 425 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 380 | Rev 381 | ||
---|---|---|---|
Line 528... | Line 528... | ||
528 | movzx edx,word [WIN_STACK+ecx*2] |
528 | movzx edx,word [WIN_STACK+ecx*2] |
529 | mov eax, [TASK_COUNT] |
529 | mov eax, [TASK_COUNT] |
530 | cmp eax,edx |
530 | cmp eax,edx |
531 | jne no_eventoccur2x |
531 | jne no_eventoccur2x |
532 | cmp [0xf400],byte 0 |
532 | cmp [KEY_COUNT],byte 0 |
533 | je no_eventoccur2x |
533 | je no_eventoccur2x |
534 | eventoccur2: |
534 | eventoccur2: |
535 | popad |
535 | popad |
536 | mov eax,2 |
536 | mov eax,2 |
537 | ret |
537 | ret |
538 | no_eventoccur2x: |
538 | no_eventoccur2x: |
Line 547... | Line 547... | ||
547 | 547 | ||
Line 548... | Line 548... | ||
548 | ;mov edi,[TASK_BASE] ; BUTTON IN BUFFER |
548 | ;mov edi,[TASK_BASE] ; BUTTON IN BUFFER |
549 | test [edi+TASKDATA.event_mask],dword 4 |
549 | test [edi+TASKDATA.event_mask],dword 4 |
550 | jz no_eventoccur3 |
550 | jz no_eventoccur3 |
551 | cmp [0xf500],byte 0 |
551 | cmp [BTN_COUNT],byte 0 |
552 | je no_eventoccur3 |
552 | je no_eventoccur3 |
553 | mov ecx, [CURRENT_TASK] |
553 | mov ecx, [CURRENT_TASK] |
554 | movzx edx, word [WIN_STACK+ecx*2] |
554 | movzx edx, word [WIN_STACK+ecx*2] |
555 | mov eax, [TASK_COUNT] |
555 | mov eax, [TASK_COUNT] |
556 | cmp eax,edx |
556 | cmp eax,edx |
557 | jnz no_eventoccur3 |
557 | jnz no_eventoccur3 |
558 | popad |
558 | popad |
559 | mov eax,[0xf501] |
559 | mov eax,[BTN_BUFF] |
560 | cmp eax,65535 |
560 | cmp eax,65535 |
561 | je no_event_1 |
561 | je no_event_1 |
562 | mov eax,3 |
562 | mov eax,3 |
563 | ret |
563 | ret |
Line 564... | Line 564... | ||
564 | 564 | ||
565 | no_event_1: |
565 | no_event_1: |
566 | mov [window_minimize],1 |
566 | mov [window_minimize],1 |
567 | mov [0xf500],byte 0 |
567 | mov [BTN_COUNT],byte 0 |
568 | xor eax, eax |
568 | xor eax, eax |
Line 569... | Line 569... | ||
569 | ret |
569 | ret |
Line 587... | Line 587... | ||
587 | 587 | ||
588 | ;mov edi,[TASK_BASE] ; DESKTOP BACKGROUND REDRAW |
588 | ;mov edi,[TASK_BASE] ; DESKTOP BACKGROUND REDRAW |
589 | test [edi+TASKDATA.event_mask],dword 16 |
589 | test [edi+TASKDATA.event_mask],dword 16 |
590 | jz no_eventoccur5 |
590 | jz no_eventoccur5 |
591 | cmp [0xfff0],byte 2 |
591 | cmp [REDRAW_BACKGROUND],byte 2 |
592 | jnz no_eventoccur5 |
592 | jnz no_eventoccur5 |
593 | popad |
593 | popad |
594 | mov eax,5 |
594 | mov eax,5 |
595 | ret |
595 | ret |
Line 645... | Line 645... | ||
645 | .test_IRQ: |
645 | .test_IRQ: |
646 | cmp dword [edi+TASKDATA.event_mask], 0xFFFF |
646 | cmp dword [edi+TASKDATA.event_mask], 0xFFFF |
647 | jbe no_events |
647 | jbe no_events |
Line 648... | Line 648... | ||
648 | 648 | ||
649 | mov esi,0x2e0000 ; IRQ'S AND DATA |
649 | mov esi,IRQ_SAVE ; IRQ'S AND DATA |
650 | mov ebx,0x00010000 |
650 | mov ebx,0x00010000 |
651 | xor ecx, ecx |
651 | xor ecx, ecx |
652 | irq_event_test: |
652 | irq_event_test: |
653 | mov edi,[TASK_BASE] |
653 | mov edi,[TASK_BASE] |