Subversion Repositories Kolibri OS

Rev

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

Rev 8928 Rev 9045
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: 8928 $
9
$Revision: 9045 $
10
 
10
 
11
;==============================================================================
11
;==============================================================================
Line 128... Line 128...
128
        cmp     edx, 192
128
        cmp     edx, 192
129
        jnae    @f
129
        jnae    @f
130
        mov     edx, 192 ; max size
130
        mov     edx, 192 ; max size
131
@@:
131
@@:
132
        stdcall is_region_userspace, esi, edx    ;
132
        stdcall is_region_userspace, esi, edx    ;
133
        jnz     @f                               ;
133
        jz      @f                               ;
134
        ret                                      ;
134
        ret                                      ;
135
@@:
135
@@:
136
        mov     edi, common_colours
136
        mov     edi, common_colours
137
        mov     ecx, edx
137
        mov     ecx, edx
138
        rep movsb
138
        rep movsb
Line 145... Line 145...
145
        cmp     edx, 192
145
        cmp     edx, 192
146
        jnae    @f
146
        jnae    @f
147
        mov     edx, 192 ; max size
147
        mov     edx, 192 ; max size
148
@@:
148
@@:
149
        stdcall is_region_userspace, edi, edx
149
        stdcall is_region_userspace, edi, edx
150
        jnz     @f
150
        jz      @f
151
        ret
151
        ret
152
@@:
152
@@:
153
        mov     esi, common_colours
153
        mov     esi, common_colours
154
        mov     ecx, edx
154
        mov     ecx, edx
155
        rep movsb
155
        rep movsb