2009-09-17 13:55:38 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; ;;
|
2012-04-02 17:18:46 +02:00
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
|
2009-09-17 13:55:38 +02:00
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2012-04-02 17:18:46 +02:00
|
|
|
|
$Revision $
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;***************************************************
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> FDD
|
|
|
|
|
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Mario79
|
|
|
|
|
;***************************************************
|
2012-02-22 17:06:05 +01:00
|
|
|
|
xor eax, eax
|
|
|
|
|
mov edi, DRIVE_DATA
|
|
|
|
|
mov ecx, 16384
|
2009-09-17 13:55:38 +02:00
|
|
|
|
cld
|
2012-02-22 17:06:05 +01:00
|
|
|
|
rep stosd
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
|
mov al, 0x10
|
|
|
|
|
out 0x70, al
|
|
|
|
|
mov cx, 0xff
|
2009-09-17 13:55:38 +02:00
|
|
|
|
wait_cmos:
|
2012-02-22 17:06:05 +01:00
|
|
|
|
dec cx
|
|
|
|
|
test cx, cx
|
|
|
|
|
jnz wait_cmos
|
|
|
|
|
in al, 0x71
|
|
|
|
|
mov [DRIVE_DATA], al
|
|
|
|
|
test al, al
|
|
|
|
|
jz @f
|
|
|
|
|
in al, 0x21
|
|
|
|
|
and al, 10111111b ; Enable IRQ6
|
|
|
|
|
out 0x21, al
|
|
|
|
|
@@:
|
|
|
|
|
|