Subversion Repositories Kolibri OS

Rev

Rev 10016 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10016 Rev 10051
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2024. 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
 
-
 
Line 8... Line 7...
8
$Revision: 10016 $
7
 
9
 
8
 
10
ERROR_SUCCESS        = 0
9
ERROR_SUCCESS        = 0
11
ERROR_DISK_BASE      = 1
10
ERROR_DISK_BASE      = 1
Line 154... Line 153...
154
.case1:
153
.case1:
155
        cmp     dword [ebx], 1 ; if 70.1
154
        cmp     dword [ebx], 1 ; if 70.1
156
        jnz     .case2_3
155
        jnz     .case2_3
157
        ;mov     ecx, 32
156
        ;mov     ecx, 32
158
        cmp     dword [ebx + 8], 1 ; check encoding
157
        cmp     dword [ebx + 8], 1 ; check encoding
159
        jbe     .case1_304 ; if encdoing <= 1 i.e cpp866 
158
        jbe     .case1_304 ; if encdoing <= 1 i.e cpp866
160
        mov     ecx, 560 ; if unicode then bdvk block len is 560 bytes
159
        mov     ecx, 560 ; if unicode then bdvk block len is 560 bytes
161
        jmp     .case1_end
160
        jmp     .case1_end
162
.case1_304:
161
.case1_304:
163
        mov     ecx, 304 ; if cp866 then bdvk block len is 304 bytes
162
        mov     ecx, 304 ; if cp866 then bdvk block len is 304 bytes
164
.case1_end:
163
.case1_end:
Line 185... Line 184...
185
        jmp     .end_switch
184
        jmp     .end_switch
Line 186... Line 185...
186
 
185
 
187
.switch_none:
186
.switch_none:
188
        cmp     ecx, ecx
187
        cmp     ecx, ecx
189
        jmp     .ret
188
        jmp     .ret
190
      
189
 
191
.end_switch:
190
.end_switch:
192
        stdcall is_region_userspace, edx, ecx
191
        stdcall is_region_userspace, edx, ecx
193
.ret:
192
.ret:
194
        pop     edx ecx ebx
193
        pop     edx ecx ebx