rcmolina / TapuinoOnTzxduino

tapuino on tzxduino: pins modified and menu motor control
http://www.va-de-retro.com/foros/viewtopic.php?t=5541
6 stars 1 forks source link

Feature request: Read .idx files #1

Open Maverick-Shark opened 1 year ago

Maverick-Shark commented 1 year ago

Hi,

Sometimes in a .tap preserved file (magazine, multi-games or Turbo Load tapes), you have all programs/games saved one per one (because all of them are recorded after each other in one preserved/dump file).

Then, I would like to put the virtual position of each program (as the datassette counter) to run Turbo Load program at the beginning and jump to the correct position to load the program or game.

Another example, 007 A View To a Kill preserved tap game (it's only one file too). It has different missions and you need to reset your c64 after finish each one to load the following (because at the end there are completely independent programs) and when you are using a real datassette, you need to move to the correct counter position.

There is a tool named TAP Manager (v.1.6.0 or later), that you can download from http://www.manosoft.it/ that generates an index file (.idx). You can choose between to type of index files (Princess or Ultimate 64):

image

The .idx file format supposedly follows this rather simple pattern:

0x14 Silkworm 0x8306a The Great Gianna Sisters

Offsets in hexadecimal and start with “0x”:

0x14 obviously means "start at the 21st byte of the tap file", 0x8306a means "start at the 536683rd byte of the tap file", etc ...

From https://www.lemon64.com/forum/viewtopic.php?t=71915

Examples of taps files with .idx files (index) are at archive.org (from The Ultimate Tape Archive collection):

https://archive.org/download/uta_10_Computer_Hits_2_1986_Beau_Jolly_8370

Nowadays, the .idx format is supported by DC2N5-LC, C2NEmu, TAPClean FE and Ultimate-64 was drafted by Gideon Zweijtzer (Ultimate-64) and Tom Roger Skauen (TapEx).

My request, add the feature to read .idx file (as an index) to move between tape positions.

Thanks and best regards, Shark

Maverick-Shark commented 6 months ago

Hi again,

I found this code related to load .idx files:

https://github.com/GideonZ/1541ultimate/blob/master/software/filetypes/filetype_tap.cc

image

Thanks, Shark