Subversion Repositories Kolibri OS

Rev

Rev 1168 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1168 Rev 2288
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 1168 $
8
$Revision: 2288 $
9
 
9
 
10
 
10
 
Line 174... Line 174...
174
        jmp @@End_6
174
        jmp     @@End_6
175
; Ââåñòè áàéò èç ïîðòà äàííûõ
175
; Ââåñòè áàéò èç ïîðòà äàííûõ
176
@@GetByteFromFDC:
176
@@GetByteFromFDC:
177
        inc     DX
177
        inc     DX
178
        in      AL,DX
178
        in      AL, DX
-
 
179
@@End_6:
179
@@End_6:  pop     DX
180
        pop     DX
180
        pop     ECX
181
        pop     ECX
181
        ret
182
        ret
Line 182... Line 183...
182
 
183
 
183
;*********************************************
184
;*********************************************
Line 220... Line 221...
220
        jb      @@TestRS_2
221
        jb      @@TestRS_2
221
;        jl      @@TestRS_2
222
;        jl      @@TestRS_2
222
; Îøèáêà òàéì-àóòà
223
; Îøèáêà òàéì-àóòà
223
        mov     [FDC_Status],FDC_TimeOut
224
        mov     [FDC_Status], FDC_TimeOut
224
;        mov   [flp_status],0
225
;        mov   [flp_status],0
225
@@End_7:  popa
226
@@End_7:
-
 
227
        popa
226
        ret
228
        ret
Line 227... Line 229...
227
 
229
 
228
;*********************************
230
;*********************************
229
;* ÂÊËÞ×ÈÒÜ ÌÎÒÎÐ ÄÈÑÊÎÂÎÄÀ "A:" *
231
;* ÂÊËÞ×ÈÒÜ ÌÎÒÎÐ ÄÈÑÊÎÂÎÄÀ "A:" *
Line 454... Line 456...
454
        call    GetStatusInfo
456
        call    GetStatusInfo
455
        test    [FDC_ST0],11011000b
457
        test    [FDC_ST0], 11011000b
456
        jnz     @@Err_1
458
        jnz     @@Err_1
457
        mov     [FDC_Status],FDC_Normal
459
        mov     [FDC_Status], FDC_Normal
458
        jmp @@Exit_1
460
        jmp     @@Exit_1
-
 
461
@@Err_1:
459
@@Err_1:  mov     [FDC_Status],FDC_SectorNotFound
462
        mov     [FDC_Status], FDC_SectorNotFound
460
;        mov   [flp_status],0
463
;        mov   [flp_status],0
461
@@Exit_1:
464
@@Exit_1:
462
        call    save_timer_fdd_motor
465
        call    save_timer_fdd_motor
463
        popad
466
        popad
464
        ret
467
        ret
Line 553... Line 556...
553
        call    GetStatusInfo
556
        call    GetStatusInfo
554
        test    [FDC_ST0],11000000b  ;11011000b
557
        test    [FDC_ST0], 11000000b ;11011000b
555
        jnz     @@Err_2
558
        jnz     @@Err_2
556
        mov     [FDC_Status],FDC_Normal
559
        mov     [FDC_Status], FDC_Normal
557
        jmp @@Exit_3
560
        jmp     @@Exit_3
-
 
561
@@Err_2:
558
@@Err_2:  mov     [FDC_Status],FDC_SectorNotFound
562
        mov     [FDC_Status], FDC_SectorNotFound
559
@@Exit_3:
563
@@Exit_3:
560
        call    save_timer_fdd_motor
564
        call    save_timer_fdd_motor
561
        popad
565
        popad
562
        ret
566
        ret