June 4th, 2016, 18:28
Initialize Drive Parameters command (91h) - 6 heads, 17 sectors/track
from CYL = 0 to 818
from HEAD = 0 to 5
sector number = 1
sector count = 17
read track (17 sectors)
append track to image file
next HEAD
next CYLJune 4th, 2016, 19:21
However, your documentation doesn't appear to explain how to append data to an existing file.
‘WRITEBUFFER’
Write the buffer or part of the buffer to a file. The format is "WRITEBUFFER filename bufferoffset fileoffset size", where filename is the name of the file to write to, bufferoffset is the byte offset of the starting point in the buffer, fileoffset is the byte offset of the write point in the file, and size is the size in bytes to be written. If the file does not exist it will be created. This will overwrite the designated data in the file, but will not erase any other data in the file, meaning you can keep adding data to the file at different offsets.
# write the first 512 bytes of the buffer to the file named image.bin
WRITEBUFFER image.bin 0 0 512
# write 512 bytes to the second sector of the file
WRITEBUFFER image.bin 0 512 512
June 4th, 2016, 20:12
June 4th, 2016, 20:57
It seems to be suggesting that you shouldn't normally need to poll the status register after every word, but I can see why it would be much safer to do so.
Powered by phpBB © phpBB Group.