flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Fdd use other than int 13?

Author
Thread Post new topic Reply to topic
kake_zinger



Joined: 15 Jul 2004
Posts: 51
kake_zinger
In modern bioses is there any other way to use the floppy than int 13?

All I'd like is read and write sectors by sector number 0-2779. Or some more reasonable development environment than physical floppy.
Post 04 Feb 2006, 16:55
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
You can try Dex4u floppy driver, does not use any BIOS int's.
http://www.dex4u.com/images/FloppyDriver.zip

Note: The comments are to go with this intel pdf: http://www.osdever.net/documents/82077AA_FloppyControllerDatasheet.pdf?the_id=41
Post 04 Feb 2006, 17:38
View user's profile Send private message Reply with quote
TDCNL



Joined: 25 Jan 2006
Posts: 56
TDCNL
What's wrong with the BIOS int? (sorry if this is a newbie question)

_________________
:: The Dutch Cracker ::
Post 16 Apr 2006, 10:17
View user's profile Send private message Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach
Sounds to me like all you want is to use LBA instead of CHS when reading
from floppy?
Post 18 Apr 2006, 10:56
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
TDCNL wrote:
What's wrong with the BIOS int? (sorry if this is a newbie question)

1. It's general-purpose (just like libraries). It is not made specifically for your OS or your algorithms/etc...

2. It doesn't work in Protected mode.

3. Depends on BIOS (different BIOSes, etc), and it may be slow (see 1)


but nevertheless, it's absolutely useful in Real mode, if it's ok for you, by all means use it, or for Booting (speed is not that critical in booting, but using it yields smaller code)
Post 18 Apr 2006, 11:24
View user's profile Send private message Reply with quote
TDCNL



Joined: 25 Jan 2006
Posts: 56
TDCNL
The_Grey_Beast wrote:
TDCNL wrote:
What's wrong with the BIOS int? (sorry if this is a newbie question)

1. It's general-purpose (just like libraries). It is not made specifically for your OS or your algorithms/etc...

2. It doesn't work in Protected mode.

3. Depends on BIOS (different BIOSes, etc), and it may be slow (see 1)


but nevertheless, it's absolutely useful in Real mode, if it's ok for you, by all means use it, or for Booting (speed is not that critical in booting, but using it yields smaller code)


Oh yes, I've noticed it's not available in protected mode, so..... how do we do the functions we'd like to use from BIOS in protected mode?

Second thing, are VIDEO interrupts like int 10h still available in protected mode?

Thanks for your good explanation ! Very Happy

_________________
:: The Dutch Cracker ::
Post 19 Apr 2006, 19:33
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
No you can not use int 10h in pmode, you need to set up a v86 or switch back to realmode, do you int 10h and then switch back to pmode, or use something like this
http://bos.asmhackers.net/docs/vga_without_bios/
You can take alook at a demo i made, to switch back to and from pmode for bios ints.
http://www.dex4u.com/images/DemoVesa.zip
Needs vesa2


Last edited by Dex4u on 22 Apr 2006, 14:33; edited 1 time in total
Post 19 Apr 2006, 22:07
View user's profile Send private message Reply with quote
TDCNL



Joined: 25 Jan 2006
Posts: 56
TDCNL
Dex4u wrote:
No you can not use int 10h in pmode, you need to set up a v86 or switch back to realmode, do you int 10h and then switch back to pmode, or use something like this
http://bos.asmhackers.net/docs/vga_without_bios/
You see a demo i made to switch back to and from pmode for bios ints.
http://www.dex4u.com/images/DemoVesa.zip
Needs vesa2


Ok thanx, once I get so far in my little OS-DEV I gonna try that.

_________________
:: The Dutch Cracker ::
Post 22 Apr 2006, 13:11
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.