RSC file formats

GFA, ASM, STOS, ...
Post Reply
joska
Hardware Guru
Hardware Guru
Posts: 5935
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

RSC file formats

Post by joska »

There seems to be three RSC formats:

- Original format.
- TOS >= 4 format (colour icons, > 64k)
- "long" format (Interface, RSM, ORCS, > 64k)

I would expect the original format to be supported by all AES-es, and the TOS 4 format supported by TOS 4, MagiC, N.AES, XaAES and MyAES.

But what is the "long" format for? I understand the benefits over the TOS 4 format, but who uses it?

https://freemint.github.io/tos.hyp/en/a ... tml#RSXHDR

Is this supported by any AES directly, or does it require custom loading code?
Jo Even

VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3413
Joined: Sun Aug 03, 2014 5:54 pm

Re: RSC file formats

Post by ThorstenOtto »

The ">64k" of TOS 4.04 is only because of the extra data needed for color icons. The actual resource data (OBJECTs, TEDINFOs etc) must still fit in the the first 64k, because all the offsets in the header are 16bit. The "long format" avoids this restriction by changing all offsets to 32bit. Sure, there may be not many applications that will need this (but ORCS is one of them ;)

AFAIK, only XaAES supports that format via rsrc_load(), but it can be detected using appl_getinfo(2).
Moulinaie
Atari Super Hero
Atari Super Hero
Posts: 759
Joined: Wed Feb 01, 2012 9:34 pm

Re: RSC file formats

Post by Moulinaie »

Where can one find the documentation about the Long format?

Guillaume
joska
Hardware Guru
Hardware Guru
Posts: 5935
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Re: RSC file formats

Post by joska »

The TOS formats:

https://bus-error.nokturnal.pl/atari_co ... dc.htm#rsc

Interface/RSM/ORCS format:

https://freemint.github.io/tos.hyp/en/a ... tml#RSXHDR

There's a library "xrsrc" in the Interface archives for loading and using RSC files in this format.
Jo Even

VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
OL
Atari Super Hero
Atari Super Hero
Posts: 924
Joined: Fri Apr 01, 2005 6:59 am
Contact:

Re: RSC file formats

Post by OL »

As I know, the long format come from INTERFACE and source code was provide to use it.

MyAES support this for ever with rscr_load().
OL
User avatar
Eero Tamminen
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3993
Joined: Sun Jul 31, 2011 1:11 pm

Re: RSC file formats

Post by Eero Tamminen »

joska wrote: Tue Mar 05, 2024 2:46 pm I would expect the original format to be supported by all AES-es, and the TOS 4 format supported by TOS 4, MagiC, N.AES, XaAES and MyAES.
TOS 4 format is supported also be (newer versions of) EmuTOS.
Post Reply

Return to “Coding”