Subversion Repositories Kolibri OS

Rev

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

Rev 2540 Rev 3359
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision $
8
$Revision: 3359 $
9
 
9
 
10
; Old style system call converter
10
; Old style system call converter
11
align 16
11
align 16
Line 36... Line 36...
36
        mov     ebp, [ebp]              ; ebp - original ebp
36
        mov     ebp, [ebp]              ; ebp - original ebp
37
        ;------------------
37
        ;------------------
38
        pushad
38
        pushad
39
        cld
39
        cld
Line -... Line 40...
-
 
40
 
-
 
41
        call    protect_from_terminate
40
 
42
 
-
 
43
        movzx   eax, byte [esp+28]
41
        movzx   eax, al
44
        mov     edx, dword [esp+20]
Line -... Line 45...
-
 
45
        call    dword [servetable2 + eax * 4]
42
        call    dword [servetable2 + eax * 4]
46
 
43
 
47
        call    unprotect_from_terminate
44
        popad
48
        popad
45
        ;------------------
49
        ;------------------
46
        xchg    ecx, [ss:esp]           ; â âåðøèí ñòåêà - app ecx, ecx - app esp + 4
50
        xchg    ecx, [ss:esp]           ; â âåðøèí ñòåêà - app ecx, ecx - app esp + 4
Line 60... Line 64...
60
 
64
 
61
align 16
65
align 16
62
i40:
66
i40:
63
        pushad
67
        pushad
-
 
68
        cld
64
        cld
69
        call    protect_from_terminate
-
 
70
        movzx   eax, byte [esp+28]
65
        movzx   eax, al
71
        mov     edx, dword [esp+20]
-
 
72
        call    dword [servetable2 + eax * 4]
66
        call    dword [servetable2 + eax * 4]
73
        call    unprotect_from_terminate
67
        popad
74
        popad
Line 68... Line 75...
68
        iretd
75
        iretd
69
 
76
 
Line 83... Line 90...
83
        push    ecx
90
        push    ecx
84
        mov     ecx, [ecx]
91
        mov     ecx, [ecx]
85
        ;------------------
92
        ;------------------
86
        pushad
93
        pushad
87
        cld
94
        cld
-
 
95
        call    protect_from_terminate
Line 88... Line 96...
88
 
96
 
-
 
97
        movzx   eax, byte [esp+28]
89
        movzx   eax, al
98
        mov     edx, dword [esp+20]
Line -... Line 99...
-
 
99
        call    dword [servetable2 + eax * 4]
90
        call    dword [servetable2 + eax * 4]
100
 
91
 
101
        call    unprotect_from_terminate
92
        popad
102
        popad
93
        ;------------------
103
        ;------------------
94
        mov     ecx, [ss:esp+4]
104
        mov     ecx, [ss:esp+4]
Line 123... Line 133...
123
      dd syscall_draw_window     ; 0-DrawWindow
133
      dd syscall_draw_window     ; 0-DrawWindow
124
      dd syscall_setpixel        ; 1-SetPixel
134
      dd syscall_setpixel        ; 1-SetPixel
125
      dd sys_getkey              ; 2-GetKey
135
      dd sys_getkey              ; 2-GetKey
126
      dd sys_clock               ; 3-GetTime
136
      dd sys_clock               ; 3-GetTime
127
      dd syscall_writetext       ; 4-WriteText
137
      dd syscall_writetext       ; 4-WriteText
128
      dd delay_hs                ; 5-DelayHs
138
      dd delay_hs_unprotected    ; 5-DelayHs
129
      dd syscall_openramdiskfile ; 6-OpenRamdiskFile
139
      dd syscall_openramdiskfile ; 6-OpenRamdiskFile
130
      dd syscall_putimage        ; 7-PutImage
140
      dd syscall_putimage        ; 7-PutImage
131
      dd syscall_button          ; 8-DefineButton
141
      dd syscall_button          ; 8-DefineButton
132
      dd sys_cpuusage            ; 9-GetProcessInfo
142
      dd sys_cpuusage            ; 9-GetProcessInfo
133
      dd sys_waitforevent        ; 10-WaitForEvent
143
      dd sys_waitforevent        ; 10-WaitForEvent