Subversion Repositories Kolibri OS

Rev

Rev 5852 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5852 Rev 6843
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. 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: 5852 $
8
$Revision: 6843 $
9
 
9
 
10
search_partitions:
10
search_partitions:
11
        push    ecx
11
        push    ecx
Line 214... Line 214...
214
; Loop over all disks.
214
; Loop over all disks.
215
        push    0
215
        push    0
216
        push    'bd'
216
        push    'bd'
217
.bdloop:
217
.bdloop:
218
; 3b. Get the drive number for using in /bd* name.
218
; 3b. Get the drive number for using in /bd* name.
-
 
219
        lea     eax, [esi*4]
219
        movzx   eax, byte [BiosDisksData+esi*4]
220
        movzx   eax, [BiosDisksData+eax*4+BiosDiskData.DriveNumber]
220
        sub     al, 80h
221
        sub     al, 80h
221
; 3c. Convert eax to decimal and store starting with [esp+3].
222
; 3c. Convert eax to decimal and store starting with [esp+3].
222
; First 2 bytes in [esp] are "bd".
223
; First 2 bytes in [esp] are "bd".
223
        lea     edi, [esp+2]
224
        lea     edi, [esp+2]
224
; store digits in the stack, ending with -'0'
225
; store digits in the stack, ending with -'0'