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

T64 file handling needs to be more tolerant #239

Open
DeeKay64 opened this issue Aug 21, 2022 · 0 comments
Open

T64 file handling needs to be more tolerant #239

DeeKay64 opened this issue Aug 21, 2022 · 0 comments

Comments

@DeeKay64
Copy link

Besides D64s and D81s, Pi1541 does also mount PRG files (unfortunately not via FB64 for some reason, but via OLED it does!) and T64s. The T64 mounting however should be more fault tolerant, since it seems to only work on certain headers (used e.g. by Gamebase 64 T64s) in the first 32 bytes (i.e. 'C64 tape image file') when it should only check if it starts with the string "C64" and the first 32 bytes contain the word "tape".
Also, it seems to expect the file type at offset $41 (or $01 relative for each file) to be $8x, while there are others (e.g. $Cx), so masking out the high 4 bits would seem like a good idea.. Or just assume that anything other than $00 is a PRG file, that seems to be the most compatible standard behaviour (who saves SEQ onto tape?)

Specs for T64 see here:
http://unusedino.de/ec64/technical/formats/t64.html

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

1 participant