Subversion Repositories Kolibri OS

Rev

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

Rev 1229 Rev 1424
Line 8... Line 8...
8
; Detect all BIOS hard drives.
8
; Detect all BIOS hard drives.
9
; diamond, 2008
9
; diamond, 2008
Line 10... Line 10...
10
 
10
 
11
        xor     cx, cx
11
        xor     cx, cx
-
 
12
        mov     es, cx
12
        mov     es, cx
13
        inc     cx
13
        mov     di, 0x9080
14
        mov     di, 0x9080
-
 
15
        mov     byte [es:di-1], cl
-
 
16
        mov     byte [es:di], 80h
14
        mov     byte [es:di-1], cl
17
        inc     di
15
        cmp     [preboot_biosdisk], 1
18
        cmp     [preboot_biosdisk], 1
16
        jnz     bdde
19
        jnz     bdde
17
        mov     dl, 80h
20
        mov     dl, 81h
18
bdds:
21
bdds:
19
        mov     ah, 15h
22
        mov     ah, 15h
20
        push    cx dx di
23
        push    cx dx di
21
        int     13h
24
        int     13h