flat assembler
Message board for the users of flat assembler.

Index > DOS > CD RoM Status

Author
Thread Post new topic Reply to topic
bmmueller



Joined: 06 Mar 2025
Posts: 14
bmmueller 22 May 2025, 08:37
Hallo
Ich habe da Mal wieder eine Fachfrage an Euch.
Ich möchte den Status des CD LW mit Assembler oder c++ im dos realmode abfragen.
Also ob CD drin oder leer. Auch Sektoren lesen,wenn das möglich ist.
Irgendwie mit Int 2fh oder IOCTL soll sowas gehen.
Post 22 May 2025, 08:37
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1159
Location: Russia
macomics 22 May 2025, 10:16
Without a CD-ROM driver, interrupt 2F will not answer you. And you can request the status yourself by simply sending commands to the appropriate port (170-17F and 1F0-1FF).

I had a description of the commands for ATAPI, but in Russian. Will it suit you?
Post 22 May 2025, 10:16
View user's profile Send private message Reply with quote
Core i7



Joined: 14 Nov 2024
Posts: 72
Location: Socket on motherboard
Core i7 22 May 2025, 12:35
ATA command "IDENTIFY PACKET DEVICE (0xA1)" returns a 512 byte block of information with the identification of the atapi device
https://wiki.osdev.org/ATAPI
Post 22 May 2025, 12:35
View user's profile Send private message Reply with quote
bmmueller



Joined: 06 Mar 2025
Posts: 14
bmmueller 22 May 2025, 14:52
Treiber ist ja gegeben. Das LW ist durch "mscdex" im System eingebunden.
Ich dachte es gibt einen c++ eigenen Befehl oder Funktion um Daten zu lesen und Parameter zu empfangen.
Post 22 May 2025, 14:52
View user's profile Send private message Reply with quote
Core i7



Joined: 14 Nov 2024
Posts: 72
Location: Socket on motherboard
Core i7 23 May 2025, 06:34
here is a special command for requesting parameters
what interface does the drive have - ATA or SATA?
if SATA, the port number must be read from the BAR register in PCI-Cfg
Post 23 May 2025, 06:34
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.