Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add double step flag - example patch provided #90

Open
magore opened this issue Jul 11, 2021 · 2 comments
Open

Suggestion: Add double step flag - example patch provided #90

magore opened this issue Jul 11, 2021 · 2 comments

Comments

@magore
Copy link

magore commented Jul 11, 2021

I typically capture all of my disks on an 80 track drive even if the original dists may only have been 40 track. So it would be awesome to have a double step option on the disk-analyse command

Attached is a simple patch that adds this option. I have used this for creating .img files successfully

disk-analyse.patch.txt

@philpem
Copy link
Contributor

philpem commented Jul 25, 2021

Very nice - this is pretty much exactly what I need, for the same reasons. Could this be made to provide a means of skipping either the odd-numbered (skip 1,3,5,...) or even-numbered (skip 0,2,4...) tracks?

In my experience most drives you want to skip the odd tracks, but I can see situations (disk read/written with a track offset) where skip-even might be useful.

@keirf
Copy link
Owner

keirf commented Jul 25, 2021

I have committed an alternative patch which implements the double-step action within the libdisk stream objects. This makes more sense: the logical track numbering is 0-39 (say) in your IMG file, and you just want the multiply-by-2 when indexing into the raw input stream. See what you think.

Regarding skipping even tracks: Easy to implement if it does turn out to be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants