Rev 8051 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2288 | clevermous | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
10051 | ace_dent | 3 | ;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;; |
2288 | clevermous | 4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
||
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
7 | |||
8 | |||
9 | ;*************************************************** |
||
8051 | rgimad | 10 | ; clear the DRIVE_DATA table, |
11 | ; search for FDDs and add them into the table |
||
12 | ; author - Mario79 |
||
2288 | clevermous | 13 | ;*************************************************** |
14 | xor eax, eax |
||
15 | mov edi, DRIVE_DATA |
||
3627 | Serge | 16 | mov ecx, DRIVE_DATA_SIZE/4 |
2288 | clevermous | 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 |
||
3771 | mario79 | 31 | |
32 | stdcall attach_int_handler, 6, FDCInterrupt, 0 |
||
33 | DEBUGF 1, "K : Set IDE IRQ6 return code %x\n", eax |
||
4273 | clevermous | 34 | call floppy_init |
2288 | clevermous | 35 | @@: |
36 |