SteveH
Experienced Member
Hi All,
I’m looking for some advice or best practice on how to handle double sided disks within a CP/M 2.2 CBIOS. My CBIOS deblocking routines are currently working on just side 0. I’m using 8” DD disks formatted as 77 tracks, 8 x 1024 byte sectors per track and 2 sides – well, to be honest, I’m testing this using a HxC floppy emulator, but once working will switch to real diskettes.
My thoughts so far are
I think my last idea may result in more head movement, so am inclined to discard that one, but has anyone got any other/better suggestions or gotchas? Or even, what was common practice back in the day when CP/M was prevalent.
Cheers
Steve
I’m looking for some advice or best practice on how to handle double sided disks within a CP/M 2.2 CBIOS. My CBIOS deblocking routines are currently working on just side 0. I’m using 8” DD disks formatted as 77 tracks, 8 x 1024 byte sectors per track and 2 sides – well, to be honest, I’m testing this using a HxC floppy emulator, but once working will switch to real diskettes.
My thoughts so far are
- Double up the number of tracks and treat even numbered tracks as side 0 and odd numbered as side 1.
- Double up the number sectors per track and treat the first 8 sectors as side 0 and the last 8 sectors as side 1.
- Double up the number of tracks and treat the first 77 as side 0 and the remainder as side 1.
I think my last idea may result in more head movement, so am inclined to discard that one, but has anyone got any other/better suggestions or gotchas? Or even, what was common practice back in the day when CP/M was prevalent.
Cheers
Steve