Subversion Repositories Kolibri OS

Rev

Rev 8051 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;                                                              ;;
  3. ;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
  4. ;; Distributed under terms of the GNU General Public License    ;;
  5. ;;                                                              ;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8.  
  9. ;***************************************************
  10. ;      clear the DRIVE_DATA table,
  11. ;      search for FDDs and add them into the table
  12. ;      author - Mario79
  13. ;***************************************************
  14.         xor     eax, eax
  15.         mov     edi, DRIVE_DATA
  16.         mov     ecx, DRIVE_DATA_SIZE/4
  17.         cld
  18.         rep stosd
  19.  
  20.         mov     al, 0x10
  21.         out     0x70, al
  22.         mov     cx, 0xff
  23. wait_cmos:
  24.         dec     cx
  25.         test    cx, cx
  26.         jnz     wait_cmos
  27.         in      al, 0x71
  28.         mov     [DRIVE_DATA], al
  29.         test    al, al
  30.         jz      @f
  31.  
  32.         stdcall attach_int_handler, 6, FDCInterrupt, 0
  33.         DEBUGF  1, "K : Set IDE IRQ6 return code %x\n", eax
  34.         call    floppy_init
  35. @@:
  36.  
  37.