It appears that WinVICE 3.1 has good support for DOS errors on disks. In fact, it can write the error information to a D64, while true drive emulation is enabled, even at the time an error is actually created: this is quite remarkable if you ask me! Therefore I shall be using WinVICE 3.1 for testing the process of dumping to D64 while including the error information with a disk image.
For testing purposes I had created DOS error 23 on tracks 1 and 3 in VICE:
The thing I was able to confirm is that the error information consists of FDC codes and not IP codes!
Here’s the mapping according to D64 Editor:
As the above screenshot shows, errors can only be detected by performing a R/W/SEEK operation. What this means for me is that to produce a D64 with error information I would have to go for a slow disk dumping process, querying each sector in turn and consulting the error channel after each read attempt.
Upon detecting certain errors when invoking the standard block read command, U1, a head bump would occur as well, which not only slows the process down dramatically, but also puts some stress on the drive’s mechanics!
I’d have to write some custom drive code to make the process faster and less stressful.
If you know of an existing implementation that meets such requirements, just let me know!