WHDLoad MantisBT - RawDIC
View Issue Details
0006459RawDIC[All Projects] Generalpublic2024-04-03 21:422024-04-03 21:42
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
GFXCardPicasso IV
ChipMem2 MB
FastMem96 MB
WorkbenchOS 3.1
KickROM40 - Kick 3.1
Summary0006459: Provide disk image size in structures or when calling dsk_DiskCode
DescriptionI would like to get the size of the disk image when dsk_DiskCode is called, either in a register, by reading a field from a structure or calling a rawdic function.

Use case: I have updated the Turbo Outrun imager to support 2 different versions (1 disk US version, 2 disk SPS 1064 version). As I had to use a DOS track to get the checksum for determining the game version but didn't want to add it to the saved disk image, I used the FL_NOFILES flag and save the disk image data in my own dsk_DiskCode custom routine. I found no way to retrieve the size of the disk image, so I had to calculate it manually by using the tracklist as input. Worked well, but is rather inconvenient.

Is there any possibility to get the size of the resulting disk image when dsk_DiskCode is called? I didn't find anything but I may have missed something.

Additional InformationI have attached the imager source which may help to understand the problem better.
TagsNo tags attached.
Attached Files? TurboOutrun_ImagerSlave.s (5,452) 2024-04-03 21:42

There are no notes attached to this issue.

Issue History
2024-04-03 21:42StingRayNew Issue
2024-04-03 21:42StingRayFile Added: TurboOutrun_ImagerSlave.s