Rev 5363 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5363 | Rev 8051 | ||
---|---|---|---|
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | 7 | ||
8 | $Revision: 5363 $ |
8 | $Revision: 8051 $ |
9 | 9 | ||
10 | 10 | ||
11 | ;*************************************************** |
11 | ;*************************************************** |
12 | ; предварительная очистка области таблицы |
12 | ; clear the DRIVE_DATA table, |
13 | ; поиск и занесение в таблицу приводов FDD |
13 | ; search for FDDs and add them into the table |
14 | ; автор Mario79 |
14 | ; author - Mario79 |
15 | ;*************************************************** |
15 | ;*************************************************** |
16 | xor eax, eax |
16 | xor eax, eax |
17 | mov edi, DRIVE_DATA |
17 | mov edi, DRIVE_DATA |
18 | mov ecx, DRIVE_DATA_SIZE/4 |
18 | mov ecx, DRIVE_DATA_SIZE/4 |
19 | cld |
19 | cld |
20 | rep stosd |
20 | rep stosd |
21 | 21 | ||
22 | mov al, 0x10 |
22 | mov al, 0x10 |
23 | out 0x70, al |
23 | out 0x70, al |
24 | mov cx, 0xff |
24 | mov cx, 0xff |
25 | wait_cmos: |
25 | wait_cmos: |
26 | dec cx |
26 | dec cx |
27 | test cx, cx |
27 | test cx, cx |
28 | jnz wait_cmos |
28 | jnz wait_cmos |
29 | in al, 0x71 |
29 | in al, 0x71 |
30 | mov [DRIVE_DATA], al |
30 | mov [DRIVE_DATA], al |
31 | test al, al |
31 | test al, al |
32 | jz @f |
32 | jz @f |
33 | 33 | ||
34 | stdcall attach_int_handler, 6, FDCInterrupt, 0 |
34 | stdcall attach_int_handler, 6, FDCInterrupt, 0 |
35 | DEBUGF 1, "K : Set IDE IRQ6 return code %x\n", eax |
35 | DEBUGF 1, "K : Set IDE IRQ6 return code %x\n", eax |
36 | call floppy_init |
36 | call floppy_init |
37 | @@: |
37 | @@: |