Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Потрепаться";
Текущий архив: 2005.12.11;
Скачать: [xml.tar.bz2];

Вниз

Готовность устройства...   Найти похожие ветки 

 
ArtemESC ©   (2005-11-22 18:26) [0]

Доброго времени суток...
Как определить готов ли CDROM и Floppy используя только
        асм и прерывания BIOS?
{Где "готовность" есть - наличие в устройстве диска или дескеты}


 
Джо ©   (2005-11-22 18:32) [1]

int 13, AH=10h, DL=drive number.
Или просто обратиться к диску, что, в принципе, одно и то же.


 
Джо ©   (2005-11-22 18:35) [2]

AH = 10h
       DL = drive number (0=A:, 1=2nd floppy, 80h=drive 0, 81h=drive 1)

       on return:
       AH = status  (see INT 13,STATUS)
       CF = 0 if successful
          = 1 if error

       - many good programming references indicate this function is only
         available on the AT, PS/2 and later systems, but all hard disk
         systems since the XT have this function available
====
Int 13 Disk Status:

       AH = 01

       on return:
       AL = status:

       Status in AL

          00  no error
          01  bad command passed to driver
          02  address mark not found or bad sector
          03  diskette write protect error
          04  sector not found
          05  fixed disk reset failed
          06  diskette changed or removed
          07  bad fixed disk parameter table
          08  DMA overrun
          09  DMA access across 64k boundary
          0A  bad fixed disk sector flag
          0B  bad fixed disk cylinder
          0C  unsupported track/invalid media
          0D  invalid number of sectors on fixed disk format
          0E  fixed disk controlled data address mark detected
          0F  fixed disk DMA arbitration level out of range
          10  ECC/CRC error on disk read
          11  recoverable fixed disk data error, data fixed by ECC
          20  controller error (NEC for floppies)
          40  seek failure
          80  time out, drive not ready
          AA  fixed disk drive not ready
          BB  fixed disk undefined error
          CC  fixed disk write fault on selected drive
          E0  fixed disk status error/Error reg = 0
          FF  sense operation failed

       - codes represent controller status after last disk operation
       - returns the status byte located at 40:41 in the BIOS Data Area


 
ArtemESC ©   (2005-11-22 18:36) [3]

>>Джо
>>int 13, AH=10h, DL=drive number.

Не совсем ясно. Можно поподробнее?


 
ArtemESC ©   (2005-11-22 18:39) [4]

[3] - вовремя...

>>Джо
Спасибо...
А Под каким номером "находиться" CDROM?..


 
Джо ©   (2005-11-22 18:46) [5]


>  [4] ArtemESC ©   (22.11.05 18:39)
> А Под каким номером "находиться" CDROM?..

У меня под 5 и 6. У тебя - откуда мне знать?


 
ArtemESC ©   (2005-11-22 18:48) [6]

>>Джо
А как узнать?



Страницы: 1 вся ветка

Форум: "Потрепаться";
Текущий архив: 2005.12.11;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.041 c
2-1132748523
tytus
2005-11-23 15:22
2005.12.11
Помогите примером


2-1132602045
The Sound
2005-11-21 22:40
2005.12.11
Выключение ПК.


11-1113250773
Boguslaw Brandys
2005-04-12 00:19
2005.12.11
DecodeTime missing in KOL


1-1131740019
redlord
2005-11-11 23:13
2005.12.11
как узнать на сколько прога грузит проц ?


14-1132286700
Учусь
2005-11-18 07:05
2005.12.11
Зачем нужны коллекции?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский