Skip to content

Commit

Permalink
patterns/fs: Fixed pattern and uploaded test data
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Nov 28, 2024
1 parent 500a3fe commit 4c96bfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions patterns/fs.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#pragma description Drive File System

import std.io;
import std.core;

struct DiskTimeStamp {
u8 seconds, minutes, hours;
Expand Down Expand Up @@ -52,7 +53,7 @@ namespace fat32 {
lastLogical : 1;
padding : 1;
number : 5;
} [[bitfield_order(BitfieldOrder::MostToLeastSignificant, 8)]];
} [[bitfield_order(std::core::BitfieldOrder::MostToLeastSignificant, 8)]];

enum EntryStatus : u8 {
Regular = 0x00,
Expand All @@ -73,7 +74,7 @@ namespace fat32 {
subdirectory : 1;
archive : 1;
padding : 2;
} [[bitfield_order(BitfieldOrder::LeastToMostSignificant, 8)]];
} [[bitfield_order(std::core::BitfieldOrder::LeastToMostSignificant, 8)]];

struct DirEntry {
char fileName[8];
Expand Down
Binary file added tests/patterns/test_data/fs.hexpat.img
Binary file not shown.

0 comments on commit 4c96bfb

Please sign in to comment.