Subversion Repositories Kolibri OS

Rev

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

Rev 1065 Rev 1132
Line 71... Line 71...
71
if use_lba
71
if use_lba
72
	mov	ah, 41h
72
        mov     ah, 41h
73
	mov	bx, 55AAh
73
        mov     bx, 55AAh
74
	int	13h
74
        int     13h
75
	mov	si, aNoLBA
75
        mov     si, aNoLBA
76
	jc	err
76
        jc      err_
77
	cmp	bx, 0AA55h
77
        cmp     bx, 0AA55h
78
	jnz	err
78
        jnz     err_
79
	test	cl, 1
79
        test    cl, 1
80
	jz	err
80
        jz      err_
81
else
81
else
82
	mov	ah, 8
82
        mov     ah, 8
83
	int	13h
83
        int     13h
84
	jc	@f
84
        jc      @f
85
	movzx	ax, dh
85
        movzx   ax, dh
Line 104... Line 104...
104
	mov	si, main_loader
104
        mov     si, main_loader
105
	call	lookup_in_dir
105
        call    lookup_in_dir
106
	jnc	kordldr_ok
106
        jnc     kordldr_ok
107
noloader:
107
noloader:
108
	mov	si, aLoaderNotFound
108
        mov     si, aLoaderNotFound
109
err:
109
err_:
110
	call	out_string
110
        call    out_string
111
	mov	si, aPressAnyKey
111
        mov     si, aPressAnyKey
112
	call	out_string
112
        call    out_string
113
	xor	ax, ax
113
        xor     ax, ax
114
	int	16h
114
        int     16h
Line 168... Line 168...
168
	mov	si, sp
168
        mov     si, sp
169
	mov	dl, [bp-2]
169
        mov     dl, [bp-2]
170
	mov	ah, 42h
170
        mov     ah, 42h
171
	int	13h
171
        int     13h
172
	mov	si, aReadError
172
        mov     si, aReadError
173
	jc	err
173
        jc      err_
174
; restore stack
174
; restore stack
175
	add	sp, 10h
175
        add     sp, 10h
176
; increase current sector & buffer; decrease number of sectors
176
; increase current sector & buffer; decrease number of sectors
177
	movzx	esi, cx
177
        movzx   esi, cx
178
	mov	ax, es
178
        mov     ax, es
Line 234... Line 234...
234
	int	13h	; reset drive
234
        int     13h     ; reset drive
235
	pop	ax
235
        pop     ax
236
	dec	si
236
        dec     si
237
	jnz	@b
237
        jnz     @b
238
	mov	si, aReadError
238
        mov     si, aReadError
239
	jmp	err
239
        jmp     err_
240
@@:
240
@@:
241
	pop	ax
241
        pop     ax
242
	mov	ax, es
242
        mov     ax, es
243
	mov	cx, di
243
        mov     cx, di
244
	shl	cx, 5
244
        shl     cx, 5
Line 353... Line 353...
353
		display d
353
                display d
354
	end repeat
354
        end repeat
355
	display 13,10
355
        display 13,10
356
}
356
}
Line 357... Line 357...
357
 
357