2011-10-14 23:38:50 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
2024-05-22 17:15:14 +02:00
|
|
|
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
2011-10-14 23:38:50 +02:00
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
|
|
|
|
;***************************************************
|
2020-07-15 00:30:33 +02:00
|
|
|
; clear the DRIVE_DATA table,
|
|
|
|
; search for FDDs and add them into the table
|
|
|
|
; author - Mario79
|
2011-10-14 23:38:50 +02:00
|
|
|
;***************************************************
|
|
|
|
xor eax, eax
|
|
|
|
mov edi, DRIVE_DATA
|
2013-06-08 15:08:51 +02:00
|
|
|
mov ecx, DRIVE_DATA_SIZE/4
|
2011-10-14 23:38:50 +02:00
|
|
|
cld
|
|
|
|
rep stosd
|
|
|
|
|
|
|
|
mov al, 0x10
|
|
|
|
out 0x70, al
|
|
|
|
mov cx, 0xff
|
|
|
|
wait_cmos:
|
|
|
|
dec cx
|
|
|
|
test cx, cx
|
|
|
|
jnz wait_cmos
|
|
|
|
in al, 0x71
|
|
|
|
mov [DRIVE_DATA], al
|
|
|
|
test al, al
|
|
|
|
jz @f
|
2013-07-06 13:33:30 +02:00
|
|
|
|
|
|
|
stdcall attach_int_handler, 6, FDCInterrupt, 0
|
|
|
|
DEBUGF 1, "K : Set IDE IRQ6 return code %x\n", eax
|
2013-11-21 17:07:16 +01:00
|
|
|
call floppy_init
|
2011-10-14 23:38:50 +02:00
|
|
|
@@:
|
|
|
|
|