My floppy driver finally works!

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
User avatar
Ycep
Member
Member
Posts: 401
Joined: Mon Dec 28, 2015 11:11 am

My floppy driver finally works!

Post by Ycep »

Now, finally, after 3 months of hardcore debugging, I have finally finished my sector device.
This was the error:

Code: Select all

if(FloppySeek(Track,Head,Drive))return (void*)0;
needed to be:

Code: Select all

if(!FloppySeek(Track,Head,Drive))return (void*)0;
This is how much could single interpuction sign lead to problems. This day, to me, will not be forgotten.
I may be dreaming... This is not possible.
*** Looking at 0x55 0xAA... ***

Now, FAT12! Yeah!
User avatar
Octacone
Member
Member
Posts: 1138
Joined: Fri Aug 07, 2015 6:13 am

Re: My floppy driver finally works!

Post by Octacone »

Congrats! At least you have something that can hold data, even if it is floppy.
Also I wanted to tell you this for a long time: put put put and that is all.
Why FAT12 when you can do FAT32 with the same amount of code.
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: My floppy driver finally works!

Post by Kevin »

Because FAT32 on floppies is a terrible idea (in fact, it's plain wrong because FAT32 has a minimum file system size that is larger than a floppy).
Developer of tyndur - community OS of Lowlevel (German)
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: My floppy driver finally works!

Post by SpyderTL »

Lukand wrote:*** Looking at 0x55 0xAA... ***
I think this deserves to go in the AWWW YEAH thread. Congrats.

Kevin wrote:Because FAT32 on floppies is a terrible idea (in fact, it's plain wrong because FAT32 has a minimum file system size that is larger than a floppy).
That horse has been thoroughly beaten in other threads. I wouldn't put too much effort into arguing about it here...
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
mikegonta
Member
Member
Posts: 229
Joined: Thu May 19, 2011 5:13 am
Contact:

Re: My floppy driver finally works!

Post by mikegonta »

Kevin wrote:... FAT32 has a minimum file system size that is larger than a floppy ...
exFAT has a maximum file size much larger than FAT32 and a minimum file size of only 1 Meg. MS does not support exFAT on 1.44MB floppy disks
even though the minimum file system size is smaller, whereas FAT32 on 1.44MB floppy disks is fully supported (other than formatting - which is
simple enough to do yourself) by MS on WinXP and later.
SpyderTL wrote:That horse has been thoroughly beaten in other threads.
You can lead a programmer to water, but you can't make the programmer think.
Mike Gonta
look and see - many look but few see

https://mikegonta.com
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: My floppy driver finally works!

Post by osdever »

Congratulations!
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Post Reply