add debug

This commit is contained in:
David Voswinkel
2009-06-07 17:26:37 +02:00
parent 4a61063406
commit c1203c3519
9 changed files with 481 additions and 42 deletions

View File

@@ -44,9 +44,10 @@ image_not_parted:
image:
rm -fv disk00.vfat
mkfs.vfat -I -F 16 -v -C disk00.vfat 32000
mkfs.vfat -I -F 12 -v -C disk00.vfat 32000
sudo mount -o loop disk00.vfat disk
sudo cp -v ../../../roms/*smc disk/
sudo cp -v /var/log/syslog disk/test.txt
sudo umount disk
mount:

Binary file not shown.

View File

@@ -354,9 +354,9 @@ int main (void)
break;
case 'o' : /* fo <mode> <name> - Open a file */
if (!(&ptr, &p1)) break;
//if (!(&ptr, &p1)) break;
while (*ptr == ' ') ptr++;
put_rc(f_open(&file1, ptr, (BYTE)p1));
put_rc(f_open(&file1, ptr, (BYTE)FA_READ));
break;
case 'c' : /* fc - Close a file */
@@ -383,7 +383,7 @@ int main (void)
p2 += s2;
if (cnt != s2) break;
}
s2 = Timer;
s2 = Timer + 1;
printf("%lu bytes read with %lu bytes/sec.\n", p2, p2 * 100 / s2);
break;