fat12 | a simple fat12 filesystem | File Utils library
kandi X-RAY | fat12 Summary
kandi X-RAY | fat12 Summary
a simple fat12 filesystem
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fat12
fat12 Key Features
fat12 Examples and Code Snippets
Community Discussions
Trending Discussions on fat12
QUESTION
I have a function in my code that loads in the FAT and root directory. This function causes some sort of CPU hang on the PCem emulator but not other emulators like QEMU or PCjs. If this is not a bug with PCem, then why would my program act this way?
The FAT loading function:
...ANSWER
Answered 2021-Dec-07 at 19:09QUESTION
I am new to embedded development and have been tasked with implementing a file system on SPI flash memory. I am using a w25qxx chip and an STM32F4xx on STM32CubeIDE. I have successfully created the basic i/o for the w25 over SPI, being able to write and read sectors at a time.
In my user_diskio.c I have implemented all of the needed i/o methods and have verified that they are properly linked and being called.
in my main.cpp I go to format the drive using f_mkfs()
, then get the free space, and finally open and close a file. However, f_mkfs()
keeps returning FR_MKFS_ABORTED
. (FF_MAX_SS is set to 16384)
ANSWER
Answered 2021-Feb-23 at 21:17Here:
QUESTION
I coded this small bootloader that prints a single character to the screen in 32-bit protected mode:
...ANSWER
Answered 2020-Nov-25 at 06:28The problem was that you didn't initialise ds
to zero. You're using the following lgdt
instruction:
QUESTION
I am trying to develop a small OS with custom bootloader. I have a little bit of experience in OSDEV but not that much... My problem is that the first stage bootloader does not load the seconds from the disk. this is the boot.asm file:
...ANSWER
Answered 2020-Jul-01 at 16:23I'd highly recommend using BOCHS to debug real mode code, especially bootloaders and the early stages of kernel development. On a *nix type system you could start BOCHS with:
QUESTION
I am writing a boot sector to load my 16-bit real mode DOS clone, and I'm stuck on something which might be completely obvious, but I've spent hours of time trying to understand why it won't work.
Basically, I'm trying to set DS
, CS
, SS
to zero, but keep ES
set directly past 7C00 to load the system.
But when running my code through a debugger, it says that nothing was ever read into memory, i.e.: root, FATs, etc (???)
Basically, I'm trying to compare DS:SI
(0000:7C00+FILE) TO ES:DI
(07E0:0000), but to no avail. I heard someone tell me that it actually checks DS:SI
with DS:DI
and so I tried it, but that didn't work either.
Shouldn't 07E0:0000 be directly after 0000:7C00? Does cmpsb
require ES
& DS
to be the same?
I've looked in the Intel manuals, but it says that cmpsb
compares DS:SI
to ES:DI
, but I don't think I'm misunderstanding too much. 07E0:0000 is 0x7E00, no?
Anyway, thanks for any help. I appreciate it.
EDIT: I forgot to mention that if I zero ES
and put the load address into BX
, everything works. But when it's flipped, ES=07E0
, BX=0
, nothing works or is even read. No idea why, since ES:BX
should be the same thing regardless of which route you take.
My code:
...ANSWER
Answered 2020-Feb-08 at 14:34On the one hand you define:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fat12
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page