2007-03-26 16:18:08 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2007-07-27 17:52:03 +04:00
|
|
|
|
$Revision$
|
|
|
|
|
|
|
|
|
|
|
2005-10-06 21:56:22 +04: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
|
|
|
|
|
;***************************************************
|
2011-08-20 19:18:25 +04:00
|
|
|
|
xor eax,eax
|
|
|
|
|
mov edi,DRIVE_DATA
|
|
|
|
|
mov ecx,16384
|
|
|
|
|
cld
|
|
|
|
|
rep stosd
|
2005-10-06 21:56:22 +04:00
|
|
|
|
|
2011-08-20 19:18:25 +04:00
|
|
|
|
mov al,0x10
|
|
|
|
|
out 0x70,al
|
|
|
|
|
mov cx,0xff
|
2005-10-06 21:56:22 +04:00
|
|
|
|
wait_cmos:
|
2011-08-20 19:18:25 +04: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
|
|
|
|
|
@@:
|
|
|
|
|
|