Rev 2455 | Rev 3539 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2455 | Rev 3534 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2011. 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: 2455 $ |
8 | $Revision: 3534 $ |
9 | 9 | ||
10 | 10 | ||
Line 282... | Line 282... | ||
282 | ret |
282 | ret |
Line 283... | Line 283... | ||
283 | 283 | ||
284 | ;***************************************** |
284 | ;***************************************** |
285 | ;* ÏÐÎÂÅÐÊÀ ÇÀÄÅÐÆÊÈ ÂÛÊËÞ×ÅÍÈß ÌÎÒÎÐÀ * |
285 | ;* ÏÐÎÂÅÐÊÀ ÇÀÄÅÐÆÊÈ ÂÛÊËÞ×ÅÍÈß ÌÎÒÎÐÀ * |
- | 286 | ;***************************************** |
|
- | 287 | proc check_fdd_motor_status_has_work? |
|
- | 288 | cmp [flp_status], 0 |
|
- | 289 | jnz .yes |
|
- | 290 | cmp [fdd_motor_status], 0 |
|
- | 291 | jz .no |
|
- | 292 | mov eax, [timer_ticks] |
|
- | 293 | sub eax, [timer_fdd_motor] |
|
- | 294 | cmp eax, 500 |
|
- | 295 | jb .no |
|
- | 296 | .yes: |
|
- | 297 | xor eax, eax |
|
- | 298 | inc eax |
|
- | 299 | ret |
|
- | 300 | .no: |
|
- | 301 | xor eax, eax |
|
- | 302 | ret |
|
- | 303 | endp |
|
286 | ;***************************************** |
304 | |
287 | align 4 |
305 | align 4 |
288 | check_fdd_motor_status: |
306 | check_fdd_motor_status: |
289 | cmp [fdd_motor_status], 0 |
307 | cmp [fdd_motor_status], 0 |
290 | je end_check_fdd_motor_status_1 |
308 | je end_check_fdd_motor_status_1 |