OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Nov 20, 2017 7:47 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: My floppy driver finally works!
PostPosted: Sun Nov 13, 2016 2:32 pm 
Offline
Member
Member
User avatar

Joined: Mon Dec 28, 2015 11:11 am
Posts: 366
Location: Serbia
Now, finally, after 3 months of hardcore debugging, I have finally finished my sector device.
This was the error:
Code:
if(FloppySeek(Track,Head,Drive))return (void*)0;


needed to be:
Code:
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!

_________________
Website


Top
 Profile  
 
 Post subject: Re: My floppy driver finally works!
PostPosted: Sun Nov 13, 2016 3:30 pm 
Offline
Member
Member

Joined: Fri Aug 07, 2015 6:13 am
Posts: 869
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, Monolithic Kernel, Written in C++
Current Task: Learning NASM!
Forever monolithic! Don't let the micro people reassure you.


Top
 Profile  
 
 Post subject: Re: My floppy driver finally works!
PostPosted: Mon Nov 14, 2016 3:07 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1066
Location: Germany
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)


Top
 Profile  
 
 Post subject: Re: My floppy driver finally works!
PostPosted: Tue Nov 15, 2016 10:03 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1010
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: C64 Porting OS

"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: My floppy driver finally works!
PostPosted: Tue Nov 15, 2016 4:46 pm 
Offline
Member
Member

Joined: Thu May 19, 2011 5:13 am
Posts: 204
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

http://mikegonta.com


Top
 Profile  
 
 Post subject: Re: My floppy driver finally works!
PostPosted: Wed Nov 16, 2016 9:53 am 
Offline
Member
Member
User avatar

Joined: Fri Apr 03, 2015 9:41 am
Posts: 489
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group