Hi,
these are the fields and the values I use to put in them:
Code: Select all
* Fields description for VDK header
* 0 2 signature ('dk') must be in lowercase
* 2 2 Header length ($0C,$00) total header length (2 bytes, but first goes the LSB then the MSB)
* 4 1 VDK version - actual ($10) VDK format version. By now $10 (VDK v1.0)
* 5 1 VDK version - compat ($10) retro-compatibility, same value
* 6 1 Source id ($58) Shows how has been created the VDK file. I put here a $58
* 0 = manually created 1 = header stub
* 2 = mkdsk.exe 3 = other tools
* 'P' = PC-Dragon 'T' = T3
* 'X' = XRoar ($58) > $7F = other emulators
* 7 1 Source version ($00) I always use $00 here
* 8 1 Number of tracks ($28) number of tracks. 40 or 80 --> ($28 or $50). For a 180k always $28
* 9 1 Number of sides ($01) number of sides. 1 or 2 (for a 180K disk always $01)
* 10 1 Flags ($00) Never used them, so value $00
* 11 1 Comp & Name length ($00) same as previous one
* 12 0-31 Disk name (...) (OPTIONAL) nothing at all 'cause no name to be added
So, if you are creating discs of 180k, you could use the same header for all of them, in fact you just have to append that header to a DSK image
to get the VDK. If you are planning to do that and want compatibility with Drivewire, it is recommended to make the header 256 byte length
by padding it with $00's and using in the length field: $00,$01 (for 256 bytes). This will work with XRoar as well.
Hope it helps
cheers
pere