Subversion Repositories Kolibri OS

Rev

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

Rev 1505 Rev 3168
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 1434 $
8
$Revision: 3168 $
9
 
9
 
10
 
10
 
Line 18... Line 18...
18
        pushad
18
        pushad
19
        Mov     ds, ax, app_data
19
        Mov     ds, ax, app_data
20
        mov     es, ax
20
        mov     es, ax
21
        inc     [timer_ticks]
21
        inc     [timer_ticks]
22
        mov     eax, [timer_ticks]
22
        mov     eax, [timer_ticks]
23
        call    playNote       ; <<<--- Speaker driver
23
;        call    playNote       ; <<<--- Speaker driver
24
        sub     eax,[next_usage_update]
24
        sub     eax,[next_usage_update]
25
        cmp     eax,100
25
        cmp     eax,100
26
        jb      .nocounter
26
        jb      .nocounter
27
        add     [next_usage_update],100
27
        add     [next_usage_update],100
28
        call    updatecputimes
28
        call    updatecputimes
Line 41... Line 41...
41
align 4
41
align 4
42
change_task:
42
change_task:
43
        pushfd
43
        pushfd
44
        cli
44
        cli
45
        pushad
45
        pushad
46
if 0
-
 
47
; \begin{Mario79} ; <- must be refractoried, if used...
-
 
48
        cmp     [dma_task_switched], 1
-
 
49
        jne     .find_next_task
-
 
50
        mov     [dma_task_switched], 0
-
 
51
        mov     ebx, [dma_process]
-
 
52
        cmp     [CURRENT_TASK], ebx
-
 
53
        je      .return
-
 
54
        mov     edi, [dma_slot_ptr]
-
 
55
        mov     [CURRENT_TASK], ebx
-
 
56
        mov     [TASK_BASE], edi
-
 
57
        jmp     @f
-
 
58
.find_next_task:
-
 
59
; \end{Mario79}
-
 
60
end if
-
 
61
        call    find_next_task
46
        call    find_next_task
62
        jz      .return  ; the same task -> skip switch
47
        jz      .return  ; the same task -> skip switch
63
  @@:   mov     byte[DONT_SWITCH], 1
48
  @@:   mov     byte[DONT_SWITCH], 1
64
        call    do_change_task
49
        call    do_change_task
65
  .return:
50
  .return: