mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
Kept only fat32 code. Changed to 16-byte/row display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@255 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1dff4b65f7
commit
ccd3d0a6eb
1 changed files with 5 additions and 19 deletions
|
|
@ -20,11 +20,11 @@ void dbg_dump_buffer(unsigned char *buf)
|
||||||
unsigned char c;
|
unsigned char c;
|
||||||
unsigned char ascii[33];
|
unsigned char ascii[33];
|
||||||
|
|
||||||
for(i = 0;i < 512/32;i++)
|
for(i = 0;i < 512/16;i++)
|
||||||
{
|
{
|
||||||
for(j = 0;j < 32;j++)
|
for(j = 0;j < 16;j++)
|
||||||
{
|
{
|
||||||
c = buf[i*32+j];
|
c = buf[i*16+j];
|
||||||
|
|
||||||
printf("%02x ", c);
|
printf("%02x ", c);
|
||||||
if(c < 32 || c > 127)
|
if(c < 32 || c > 127)
|
||||||
|
|
@ -70,21 +70,7 @@ void dbg_print_bpb(struct bpb *bpb)
|
||||||
printf("bpb_fatsz32 = %u\n", bpb->bpb_fatsz32);
|
printf("bpb_fatsz32 = %u\n", bpb->bpb_fatsz32);
|
||||||
printf("last_word = %04x\n", bpb->last_word);
|
printf("last_word = %04x\n", bpb->last_word);
|
||||||
|
|
||||||
switch(bpb->fat_type)
|
printf("fat_type = FAT32\n");
|
||||||
{
|
|
||||||
case FATTYPE_FAT12:
|
|
||||||
printf("fat_type = FAT12\n");
|
|
||||||
break;
|
|
||||||
case FATTYPE_FAT16:
|
|
||||||
printf("fat_type = FAT16\n");
|
|
||||||
break;
|
|
||||||
case FATTYPE_FAT32:
|
|
||||||
printf("fat_type = FAT32\n");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
printf("fat_type = UNKNOWN (%d)\n", bpb->fat_type);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void dbg_dir(struct bpb *bpb, int currdir)
|
void dbg_dir(struct bpb *bpb, int currdir)
|
||||||
|
|
@ -105,7 +91,7 @@ void dbg_dir(struct bpb *bpb, int currdir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char current_directory[];
|
char current_directory[256] = "\\";
|
||||||
int last_secnum = 0;
|
int last_secnum = 0;
|
||||||
|
|
||||||
void dbg_prompt(void)
|
void dbg_prompt(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue