Hello everyone, I've been having an issue with my FAT12 driver. I have a function that loads a file into memory at 0x00105000, ReadFile, (this is only for testing purposes please only patronize me about the location if it is a problem) then returns the pointer to 0x00105000 (again the same as before). Of course I load the Root Directory at 0x00100000. I also have other functions like FindFile(looks for a file in the root directory then returns which entry it is), DisplayRootDir(should display all files in the root directory), fgetc (should return the specified byte), and fread(should read bytes and ints then return them). But the only function that works is the LoadRootDir, which you can imagine what it does... The ReadFile function always returns error, FindFile never finds the file, DisplayRootDir displays some random character at the end of all the filenames, and fread always returns some weird values. Here's a picture:
Also if you want to know what the bitmap fields are the type is the file type, size is the size, width and height are what you guessed. Really those are just there to test my FAT12 driver functions and testing how to read a bitmap.
This is probably a piece of information worth noting: I am using the Chapter 20 tutorial from
Broken Thorn Entertainment demo. I use the tutorial's demos from Broken Thorn to get a grasp on the subject then I port it to my OS.
Anyway my drivers code is attached. Remember this only works with the Chapter 20 tutorial demo from Broken Thorn Entertainment.
Edit sorry about the driver not being attached. I need to reorganize my os's directory
