Soeren Gust wrote:
> > I think I'll set up a page, and make .VMI files with types from 0 to
> > about 10, and see how a dreamcast handles them
>
> I did some tests by error when developing my SerialToVM, filetype 0
> means no directory entry, but the blocks are allocated in the FAT,
> filetype 1 was not erasable with the VM (System Error 8b) and any other
> file upload aborted when sending the header.
Cool. You saw an error. I've been working out the meanings for this error
bit, and a lot of it is still guesses, but here's what I think that number
means:
05c FLASH_ERRORCODE is a bit-mapped error register
** FLASH_ERRORCODE: bit 7 is an error
** FLASH_ERRORCODE: bit 6 describes FLASH @ 1FE44: 1 iff (FLASH @ 1FE44 ==
$FF) || (FLASH @ 1FE45 != 0)
** FLASH_ERRORCODE: bit 5 describes location of FAT-> 0=$00FE [default]
** 1=otherwise [routine seems
flawed]
** FLASH_ERRORCODE: bit 4 describes location of root directory (1=bad)
** FLASH_ERRORCODE: bit 2 describes a bad directory file (links in FAT bad)
** FLASH_ERRORCODE: bit 1 is set if you have no files
** FLASH_ERRORCODE: bit 0 is an error
Error 08b is bits 7, 4, 1, and 0. Two of these are unknowns and it says you
have no files and that the root directory is in a bad place. Huh. That
doesn't make much sense, so maybe there are other errors possibly generated
when erasing a file (haven't gotten that far).
John.