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

create 32Mb image misses the last block #35

Closed
peterferrie opened this issue Sep 29, 2018 · 2 comments
Closed

create 32Mb image misses the last block #35

peterferrie opened this issue Sep 29, 2018 · 2 comments

Comments

@peterferrie
Copy link

When I ask CiderPress 4.03 to create a 32Mb images, the file size is 0x1FFFE00 long, instead of 0x2000000 (but 16Mb images are 0x1000000 as expected). That prevents ProDOS from using the last block in the image, and of concatenating images to produce a CFFA multi-partition image.

@fadden
Copy link
Owner

fadden commented Sep 30, 2018

ProDOS can't use the last block -- the block count in the volume header is 16 bits.

The code in CreateImageDialog.cpp knows about the CFFA issue:

    } else if (fDiskFormatIdx == kFmtProDOS) {
        // Max is really 65535, but we allow 65536 for creation of volumes
        // that can be copied to CFFA cards.

If you select "32MB", you get a 65535 * 512 byte file. If you click on "specify size" and enter 65536, it will create a 65535-block ProDOS volume in a 65536 * 512 byte file.

@peterferrie
Copy link
Author

Okay, my mistake. Thanks.

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

2 participants