flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > Disk I/O

Author
Thread Post new topic Reply to topic
c#6



Joined: 20 Apr 2004
Posts: 25
c#6
I am currently working on an application that will allow disk access(primarily FDD, HDD, CD-ROM, Ramdisk) in MenuetOS. I found a few problems that need to be worked out.

There will be no problems accessing the ramdisk or HDD since Menuet supports the system calls for these types of disks and even though MeOS doesn't include a syscall for reading from a CD I could probably use syscall 24/ebx=2 (CD audio/get playlist) to read the TOC from it.

However it does not support the reading/writing of a FDD(except when booting/shutting down). Sad I am not sure which software (BIOS routines) and hardware interrupts are reserved or disabled.

Anyone's help would be greatly appreciated. Thanks. Smile
Post 20 Apr 2004, 14:36
View user's profile Send private message Reply with quote
Tolle



Joined: 21 Jan 2004
Posts: 71
Tolle
Well, i worked on booting the floppy from within 32bit PM, it works, but only for PC's equiped with a floppy driver that's able to read full tracks. When i find the time, i will work on it.

Once you are 'inside' menuetos, you can't do BIOS call's unless you first write a V86 monitor Smile

There is some info on the web about the FDC (Floppy Drive Controller)
So, some googling will probably get you somewhere.
Post 20 Apr 2004, 19:27
View user's profile Send private message Visit poster's website Reply with quote
c#6



Joined: 20 Apr 2004
Posts: 25
c#6
Is hardware interrupt 6 (for FDC) free within MeOS or is it reserved?

I need a great deal of information on using hardware interrupts.

If anyone can give some tips or web links it would be greatly appreciated.

Thanks. Very Happy
Post 20 Apr 2004, 19:34
View user's profile Send private message Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 225
Ville
Hardware interrupt 6 is reserved by kernel at boot-time.
But you can free the interrupt for application use in function "reserve_irqs_ports", kernel.asm.
Post 21 Apr 2004, 11:29
View user's profile Send private message Reply with quote
c#6



Joined: 20 Apr 2004
Posts: 25
c#6
The interface for the application (I call it DIO - Disk Input Output. The name will be changed soon. Wink ) is complete.

Now all I need to do is work on the disk access routines and help info.

It will allow you to perform 4 basic functions (open, copy, move, and delete).
Post 21 Apr 2004, 13:00
View user's profile Send private message Reply with quote
japreja



Joined: 02 Mar 2004
Posts: 14
Location: NY, FL, MT
japreja
Here is a listing of hardware interupts by Ralf Brown.
http://www.ctyme.com/rbrown.htm

below is the bios page!
http://www.ctyme.com/intr/cat-003.htm Cool
Post 22 Apr 2004, 08:20
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
c#6



Joined: 20 Apr 2004
Posts: 25
c#6
Can I free IRQ 6 using syscall 45/ebx=1/ecx=6? Smile
Post 22 Apr 2004, 13:27
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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.