Skip to content

Commit

Permalink
Support basic SD2IEC commands
Browse files Browse the repository at this point in the history
  • Loading branch information
KimJorgensen committed Jan 5, 2022
1 parent 5a17be3 commit 4d85739
Show file tree
Hide file tree
Showing 15 changed files with 726 additions and 139 deletions.
2 changes: 1 addition & 1 deletion firmware/d64.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ static bool d64_write_finalize(D64 *d64)

// update the entry for the new file
entry->blocks = d64->sector_count;
entry->type |= 0x80;
entry->type |= D64_FILE_NO_SPLAT;
if (!d64_write_current(d64))
{
return false;
Expand Down
8 changes: 5 additions & 3 deletions firmware/d64.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static const u16 d64_track_offset[42] =
0x0300, 0x0311
};

static const char *d64_types[8] = {"DEL", "SEQ", "PRG", "USR", "REL", "CBM", "???", "???"};
static const char *d64_types[8] = {"DEL", "SEQ", "PRG", "USR", "REL", "CBM", "DIR", "???"};

typedef enum
{
Expand Down Expand Up @@ -89,13 +89,15 @@ static u8 d64_get_type(FSIZE_t imgsize)

typedef enum
{
D64_FILE_DEL = 0,
D64_FILE_DEL = 0x00,
D64_FILE_SEQ,
D64_FILE_PRG,
D64_FILE_USR,
D64_FILE_REL,
D64_FILE_CBM,
D64_FILE_DIR
D64_FILE_DIR,
D64_FILE_LOCKED = 0x40,
D64_FILE_NO_SPLAT = 0x80
} D64_FILE_TYPE;

#pragma pack(push)
Expand Down
Loading

0 comments on commit 4d85739

Please sign in to comment.