Rev 4287 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
431 | serge | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
5565 | serge | 3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
431 | serge | 4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
||
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
7 | |||
593 | mikedld | 8 | $Revision: 5565 $ |
9 | |||
10 | |||
1 | ha | 11 | ;*************************************************** |
3555 | Serge | 12 | ; предварительная очистка области таблицы |
13 | ; поиск и занесение в таблицу приводов FDD |
||
14 | ; автор Mario79 |
||
1 | ha | 15 | ;*************************************************** |
2434 | Serge | 16 | xor eax, eax |
17 | mov edi, DRIVE_DATA |
||
3626 | Serge | 18 | mov ecx, DRIVE_DATA_SIZE/4 |
1 | ha | 19 | cld |
2434 | Serge | 20 | rep stosd |
1 | ha | 21 | |
2434 | Serge | 22 | mov al, 0x10 |
23 | out 0x70, al |
||
24 | mov cx, 0xff |
||
1 | ha | 25 | wait_cmos: |
2434 | Serge | 26 | dec cx |
27 | test cx, cx |
||
28 | jnz wait_cmos |
||
29 | in al, 0x71 |
||
30 | mov [DRIVE_DATA], al |
||
31 | test al, al |
||
32 | jz @f |
||
3908 | Serge | 33 | |
34 | stdcall attach_int_handler, 6, FDCInterrupt, 0 |
||
35 | DEBUGF 1, "K : Set IDE IRQ6 return code %x\n", eax |
||
4287 | Serge | 36 | call floppy_init |
2106 | serge | 37 | @@: |
38 |