Rev 3539 | Rev 3771 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2288 | clevermous | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
2455 | mario79 | 3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
2288 | clevermous | 4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
||
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
7 | |||
8 | $Revision: 3627 $ |
||
9 | |||
10 | |||
11 | ;*************************************************** |
||
3539 | clevermous | 12 | ; предварительная очистка области таблицы |
13 | ; поиск и занесение в таблицу приводов FDD |
||
14 | ; автор Mario79 |
||
2288 | clevermous | 15 | ;*************************************************** |
16 | xor eax, eax |
||
17 | mov edi, DRIVE_DATA |
||
3627 | Serge | 18 | mov ecx, DRIVE_DATA_SIZE/4 |
2288 | clevermous | 19 | cld |
20 | rep stosd |
||
21 | |||
22 | mov al, 0x10 |
||
23 | out 0x70, al |
||
24 | mov cx, 0xff |
||
25 | wait_cmos: |
||
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 |
||
33 | in al, 0x21 |
||
34 | and al, 10111111b ; Enable IRQ6 |
||
35 | out 0x21, al |
||
36 | @@: |
||
37 |