worked on FAT stuff and tests

This commit is contained in:
2021-02-21 21:04:11 +01:00
parent 4ac72c678f
commit 2e281f6d26
12 changed files with 758 additions and 396 deletions

View File

@@ -112,11 +112,11 @@ int main(int argc, char** argv) {
FAT32FS::DirIterator dir = fat.getRoot();
while(false) {
FAT32::DirEntryAt dea = dir.nextUsable();
if (!dea.isValid()) {break;}
FAT32::DirHandle h = dir.nextUsable();
if (!h.isValid()) {break;}
if (1==0) {
FAT32FS::File2 f = fat.open2(dea);
FAT32FS::File f = fat.open(h);
if (1==0) {
uint8_t* bufff = (uint8_t*) malloc(1024*1024);
@@ -137,11 +137,11 @@ int main(int argc, char** argv) {
//FAT32::DirEntryAt root = fat.getRoot().cur();
FAT32FS::File2 file = fat.getOrCreateFile("tmp1.txt");
// //FAT32::DirEntryAt root = fat.getRoot().cur();
// FAT32FS::File file = fat.getOrCreateFile("tmp1.txt");
uint8_t src[128];
file.write(128, src);
// uint8_t src[128];
// file.write(128, src);
// diff /tmp/ram/TETRIS.GB /apps/workspace/gbemu/tests/tetris.gb
// diff /tmp/ram/KIRBY1.GB /apps/workspace/gbemu/tests/Kirby\'s\ Dream\ Land\ \(USA\,\ Europe\).gb